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

[Feature request] Using CLAHE for Histogram equalization #4929

Open
2 tasks done
Crescent-Saturn opened this issue Sep 9, 2022 · 2 comments · May be fixed by #8730
Open
2 tasks done

[Feature request] Using CLAHE for Histogram equalization #4929

Crescent-Saturn opened this issue Sep 9, 2022 · 2 comments · May be fixed by #8730
Assignees
Labels
good first issue Good for newcomers ui/ux

Comments

@Crescent-Saturn
Copy link
Contributor

My actions before raising this issue

In some cases, raw images are hard to annotated due to their contrasts, brightness, etc. It is great to see that CVAT has already integrated the Histogram equalization with OpenCV tools in the GUI. However, the default cv.equalizeHist function may work well as it considers the global contrast of the image. This can be improved by using the CLAHE (Contrast Limited Adaptive Histogram Equalization) algo which exists already in OpenCV.

Expected Behaviour

Using CLAHE to perform histogram equalization.

Current Behaviour

Using cv.equalizeHist function to permform histogram equalization. #3447

Possible Solution

Replace cv.equalizeHist by cv.CLAHE(clipLimit, tileGridSize) and cv.CLAHE().apply().

Where clipLimit and titleGridSize may be adjusted by adding a Trackbar.

Steps to Reproduce (for bugs)

Context

Thanks for consideration!

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS):
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container
@nmanovic
Copy link
Contributor

@Crescent-Saturn , could you please contribute?

@bsekachev bsekachev added the enhancement New feature or request label Sep 12, 2022
@Crescent-Saturn
Copy link
Contributor Author

@Crescent-Saturn , could you please contribute?

Hi, @nmanovic , thanks for consideration.
Alright, I would like to have a try.
Once completed, I will make a PR.

@nmanovic nmanovic added ui/ux and removed enhancement New feature or request labels Jan 5, 2023
@bsekachev bsekachev added the good first issue Good for newcomers label Mar 11, 2024
@denck007 denck007 linked a pull request Nov 21, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ui/ux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants