Unlock this feature

This feature isn’t part of your plan yet

Contact sales to get upgraded to the full DevStudio experience.

Unlock this feature

This feature isn't part of your plan yet.

Histograms

📄 src/image.hpp

3512       /**
3513        * @brief Calculates histogram given an input image.
3514        *
3515        * @tparam OcmTensorShape Input image shape.
3516        * @tparam NDArray Array type.
3517        * @param ocmTensor Input Image
3518        * @param histo `NDArray` representing the histogram. (Expected length of 256).
3519        * @param channel Which channel to calculate.
3520        */
3521       template <typename OcmTensorShape, typename NDArray>
3522       INLINE void calcHist(OcmTensorShape& ocmTensor, NDArray& histo, std::uint8_t channel = 0) {

📄 src/image.hpp

3567       /**
3568        * @brief Equalizes image given a histogram.
3569        *
3570        * @tparam OcmTensorShape Shape of input image.
3571        * @tparam NDArray Array type.
3572        * @param ocmTensor Input image.
3573        * @param histoMap Mapping to apply.
3574        * @param channel Which channel to equalize.
3575        */
3576       template <typename OcmTensorShape, typename NDArray>
3577       INLINE void histogramEq(OcmTensorShape& ocmTensor, NDArray& histoMap, std::int32_t channel = 0) {

Sign in to your account

Don't have an account? 
By signing in, you are agreeing to our Terms of Use and Privacy Policy.
Quadric // One architecture. Every algorithm.

Develop.

Simulate.

Profile.

Collaborate.