Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAL for equalizeHist() added #25565

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions modules/imgproc/src/hal_replacement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,21 @@ inline int hal_ni_boxFilter(const uchar* src_data, size_t src_step, uchar* dst_d
#define cv_hal_boxFilter hal_ni_boxFilter
//! @endcond

/**
@brief Equalizes the histogram of a grayscale image
@param src_data Source image data
@param src_step Source image step
@param dst_data Destination image data
@param dst_step Destination image step
@param width Source image width
@param height Source image height
*/
inline int hal_ni_equalize_hist(const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }

//! @cond IGNORED
#define cv_hal_equalize_hist hal_ni_equalize_hist
//! @endcond

/**
@brief Blurs an image using a generic Gaussian filter.
@param src_data Source image data
Expand Down
2 changes: 2 additions & 0 deletions modules/imgproc/src/histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3452,6 +3452,8 @@ void cv::equalizeHist( InputArray _src, OutputArray _dst )
CV_OVX_RUN(!ovx::skipSmallImages<VX_KERNEL_EQUALIZE_HISTOGRAM>(src.cols, src.rows),
openvx_equalize_hist(src, dst))

CALL_HAL(equalizeHist, cv_hal_equalize_hist, src.data, src.step, dst.data, dst.step, src.cols, src.rows);

Mutex histogramLockInstance;

const int hist_sz = EqualizeHistCalcHist_Invoker::HIST_SZ;
Expand Down