Prev: digital watermarking using fractional fourier transform
Next: calculate the difference between a Histogramm and a Laplace distribution
From: Ahmad Alkandri on 12 Jun 2010 13:42 hi all how to normalize an image from 0 to 1 ? what i'm doing is as foloows : BG_img = imread('BG.tiff'); BGfft = fft2(BG_img); noise_img = BGfft * (conj(BGfft)); and the to normalize the output is : C = mat2gray(noise_img, [0 1]); is this right ?
From: ImageAnalyst on 12 Jun 2010 14:01 I don't think so. Don't you want noise_img = BGfft .* (conj(BGfft)); % Element by element multiplcation instead of noise_img = BGfft * (conj(BGfft)); % Matrix multiplication.
From: Ahmad Alkandri on 12 Jun 2010 14:19 what i'm trying to do here is to get the ( normilized )power spectrum density of the image ... so would i use the the element by element or matrix multiplication ?
From: ImageAnalyst on 12 Jun 2010 17:34 Yes, it would be the element by element multiplication.
From: Ahmad Alkandri on 12 Jun 2010 17:41
how would i normalize the result to be between 0 and 1 ? |