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

update plugins to have output in range [0,1] #84

Open
freetomik opened this issue Feb 14, 2019 · 1 comment
Open

update plugins to have output in range [0,1] #84

freetomik opened this issue Feb 14, 2019 · 1 comment

Comments

@freetomik
Copy link
Contributor

As said in #83, plugins' output is expected to be in range [0,1] to get them correctly work with tmocmd, otherwise result image has wrong luminance range.

More plugins does not respect that. There are some I have tested - name and output range:
Ward94: 0-1.8
CLAHE: 0-344
Biswas05: 0-2.3
Ancuti16: 0-255
Zhongping15: from 0-1 to 0-11.4
(Tested with image with input range 0-241.)

With OpenCV it is matter of calling function

cv::normalize(image, image, 0, 1, cv::NORM_MINMAX, image.type());

before writing result image to output.

For plugins which don't use OpenCV, it should be possible with help of minLum and maxLum from TMOImage.statistics I guess.

Also it will be good to write some guideline for writing plugins and mention this output range there.

@freetomik
Copy link
Contributor Author

done for Kou15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant