How we can maximize PSNR between RGB image and binary(0,1) image?
14 views (last 30 days)
mohammad nemat on 15 Nov 2021
Hi, I have one RGB image and i want to create binary image from that with maximum PSNR. How i can do that?
In another word, The goal we are pursuing here is to make the output black and white image look like
Most images are the original color image from a PSNR perspective
More Answers (3)
yanqi liu on 18 Nov 2021
sir，may be use
if ndims(im) == 3
im = rgb2gray(im);
im = double(im2uint8(mat2gray(im)));
to get the same data type
Yusuf Suer Erdem on 20 Nov 2021
I was not able to implement your codes into that probably psnr funtion only allows limited data types.
Image Analyst on 20 Nov 2021
I agree with what Yusuf and DGM said, especially DGM who came up with a clever solution. He should post it as his own answer so we can vote for it and award him reputation points. They asked why you think you need it and that it may be irrelevant. Even when DGM specifically asked you why you need it you didn't really answer and just said basically "I need it because I need it" which is a non-answer. PSNR is usually used in comparing compression techniques, not comparing a 24 bit image to a 1-bit image. So what will you do with the thresholds DGM came up with?