キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Image normalization

Hello all!
 
I'm needing some help in normalizing an image.
 
I'm converting the image into an array, then I use a function to normalize the array and finally I convert the normalized array into an image.
 
The problem is that the final image is not normalized, it's exactly equal to the initial one (comparing the histograms).
 
Any help on this?
Any example VI?
 
Thanks in advance!
0 件の賞賛
メッセージ1/6
6,715件の閲覧回数

What are you trying to do in your normalizing function?  I think there are a lot of different versions of normalization.

Bruce

Bruce Ammons
Ammons Engineering
メッセージ2/6
6,708件の閲覧回数
You method will work if the max isn't 255, and min isn't 0.
Have you tried IMAQ Equalize yet ?   That will change histogram of your image.

George Zou
http://gtoolbox.yeah.net
George Zou
メッセージ3/6
6,705件の閲覧回数
Hi again!
 
I already got into a solution.
 
All I do is to normalize the image by getting the max intensity value (using the histogram function) and then multiply the image by 255/(max intensity value).
 
I think equalize does not meet my needs, because I need the histogram with a "valley" in order to threshold the image, using that "valley peak" intensity value.
If I equalize the image, the gray values will try to be evenly distributed all over the grayscale, and then it will be harder to know the threshold intensity value.
メッセージ4/6
6,695件の閲覧回数

Idea is correct to normalizing the image. but could you please tell me how did you multiply the image by 255/(Max intensity of pixel)?

0 件の賞賛
メッセージ5/6
4,872件の閲覧回数

Use IMAQ Histogram to get the max number, then use IMAQ Multiply..

0 件の賞賛
メッセージ6/6
4,855件の閲覧回数