UH-OH

It looks like you don’t have access to that feature yet

Contact sales to get upgraded to the full DevStudio experience.

UH-OH

It looks like you don't have access to that feature yet.

to select
to navigate
escto close
Chimera Compute Library (CCL) API ReferenceImage ProcessingChannel Normalization

Channel Normalization

File: src/image.hppLines 4523–4549
    /**
     * @brief Implements a normalization step on tensors, where each channel is normalized given
     *        mean and standard deviation parameters for that channel.
     *
     * `x_norm = (x / 255 - mean) / stdev(x)`
     *
     * @tparam InShape The input tensor shape.
     * @tparam OutShape The output tensor shape.
     * @tparam ChannelInfoShape The tensor shape of mean and stdDev info.
     * @tparam OcmAllocatorType
     * @param tensorIn The input tensor.
     * @param tensorOut The output tensor.
     * @param means The tensor containing the mean info for each channel.
     * @param stdDevs The tensor containing the standard deviation info for each channel.
     * @param ocmMemAlloc OCM memory allocator.
     * @return void
     */
    template <typename InShape,
              typename OutShape,
              typename ChannelInfoShape,
              typename OcmAllocatorType,
              std::enable_if_t<isTensorT<ChannelInfoShape>::value == 1, int> = 0>
    INLINE void channelNorm(InShape&          tensorIn,
                            OutShape&         tensorOut,
                            ChannelInfoShape& means,
                            ChannelInfoShape& stdDevs,
                            OcmAllocatorType& ocmMemAlloc) {
Table of Contents


© Copyright 2026 Quadric All Rights Reserved • Privacy Policy
This documentation is preliminary and confidential. It is subject to change. Quadric does not give any warranty express or implied that the contents will be complete or accurate or up to date. The company shall not be liable for any loss, actions, claims, proceedings, demands or costs or damages whatsoever or howsoever caused arising directly or indirectly in connection with or arising out of the use of this material.

Sign in to your account

Don't have an account? Create an Account
By signing in, you are agreeing to our Terms of Use and Privacy Policy.

Develop.

Simulate.

Profile.

Collaborate.

We use cookies to enhance your browsing experience, and analyze our traffic.
By clicking "Accept All", you consent to our use of cookies.