comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Image subtraction values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Image subtraction values [message #71573] Sat, 03 July 2010 22:46 Go to next message
cgguido is currently offline  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 Go to previous message
beardown911 is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: REGRESS and sky background
Next Topic: how to define size of image in common case

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:24:21 PDT 2025

Total time taken to generate the page: 1.04118 seconds