Histogram Shape Function Question

Hello Dear Experts,
I have written the following histogram shape function that gets source and destination images and performs the histogram shape algorithm.
Please be so kind and have a look on it, because when I insert dark image of a a house and gray spectrum as destination I get as a result white picture.
*Code deleted by the Author.

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 2 Apr. 2012

1 Stimme

How are you displaying the result? It's possible you're viewing it over only a specific range (e.g. 0-1) and the values range from (0-255) thus everything greater than one appears white.
try:
imtool(I,[]);

3 Kommentare

Steve
Steve am 2 Apr. 2012
I have 2 pics, what I do in matlab is I1 = imread('filename.tiff')
and I2 the same with filename2.tiff
When I run this program I get a white pic on imshow.
Maybe you want me to transfer the pics and you will rerun the program?
Steve
Steve am 2 Apr. 2012
I have already did it and it's really got brighter but only using your command.
What is wrong with my function that I see it only in a specific range?
Steve
Steve am 2 Apr. 2012
Ohh now I got this, I just went to the help of imshow and there is a parameter that tells what range to use.
Thank you Sean!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by