Ask Your Question
1

Clahe implemenation in java

asked 2014-01-29 01:26:38 -0600

ssb gravatar image

updated 2020-10-25 13:02:59 -0600

how does CLAHE is implemented through opencv java..the constructor of CLAHE class consists long parameter Don't have idea how to implement it. What does it addresses.? opencv docs doesn't consists Constructor summary it want to implement it to adjust automatically contrast and brightness of real time images from video Thanx for help in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-01-29 03:46:21 -0600

berak gravatar image

updated 2014-01-29 03:47:16 -0600

oh dear, i'm afraid, you can't use it out-of-the-box from java

the long story goes like this : the c++ api is using a factory function, createCLAHE(), which returns a cv::Ptr<clahe>. unfortunately the java wrappers can't handle those smartpointers, and skip anything that returns them. ( there's a few other classes, like the facerecognition, that suffer from that problem, too ).

so, unless you go the jni way and work around that on your own, you won't be able to construct a CLAHE object in java.

edit flag offensive delete link more

Comments

ok thanx for your answer..but may i know any other possible way to adjust contrast and brightness on set of images??

ssb gravatar imagessb ( 2014-01-30 03:46:48 -0600 )edit

http://docs.opencv.org/java/org/opencv/imgproc/Imgproc.html#equalizeHist(org.opencv.core.Mat,%20org.opencv.core.Mat)

but again, that's global

berak gravatar imageberak ( 2014-01-30 04:09:38 -0600 )edit

yaa i have implemented that but it doesnt helped me when images taken in dark light

ssb gravatar imagessb ( 2014-01-31 04:07:41 -0600 )edit
2

Should work now for 3.0-rc: javadoc

mshabunin gravatar imagemshabunin ( 2015-04-27 07:28:46 -0600 )edit

Question Tools

Stats

Asked: 2014-01-29 01:26:38 -0600

Seen: 1,749 times

Last updated: Jan 29 '14