Re: Image subtraction values [message #71573] |
Sat, 03 July 2010 22:46  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
I am not sure, but it seems strange that you're calculating imageMean
inside the loop, as you fill Volume up with images.... so imageMean is
different for each value of i... is that what you want?
I think you want to loop over i and fill Volume all the way. Then:
imageMean = total(Volume, 3)/nImages ;;;<-- nImages is the same as
count, right?
meanVol=rebin(imageMean, ns, nl, count)
devVol=Volume-meanVol
then write each slice of devVol out to a file...
but I could have misunderstood what you want to do...
G
|
|
|
Re: Image subtraction values [message #71661 is a reply to message #71573] |
Mon, 05 July 2010 20:52  |
beardown911
Messages: 21 Registered: March 2007
|
Junior Member |
|
|
On Jul 4, 12:46 am, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
> I am not sure, but it seems strange that you're calculating imageMean
> inside the loop, as you fill Volume up with images.... so imageMean is
> different for each value of i... is that what you want?
>
> I think you want to loop over i and fill Volume all the way. Then:
>
> imageMean = total(Volume, 3)/nImages ;;;<-- nImages is the same as
> count, right?
> meanVol=rebin(imageMean, ns, nl, count)
> devVol=Volume-meanVol
>
> then write each slice of devVol out to a file...
>
> but I could have misunderstood what you want to do...
>
> G
Hi Gianguido,
Thanks for your suggestion.
But I've got exactly same results though.
I've calculated few files using envi bandmath individually, and the
bandmath seems to give right values.
I will keep studying what's wrong on my code is.
Thanks,
Hojin
|
|
|