|
Hi Josh,> I have another quick question: I have an image that I want to do a
> transformation to get another image. I did kind of a first order
> approximation to this by writing a script that just took a small box
> on the image, took the average intensity using imstat, then just spit
> out the number into a text file, so that I could do one-dimensional
> plots, but I wanted to do this transformation 'pixel-by-pixel' and I
> want it to generate a 2d image, or a 2d array atleast of intensity
> values. Is this possible? I guess the pixel-by-pixel is easy enough,
> with imstat, but is there an easy way to have a 2d file as an output? Have a look at the BLKAVG task, it'll block average the entire
image and output a new 2D image. If you need to offset this by some
amount you can use an image section as the input, if you're grabbing
"random" boxes from various places around the image you can output all
the numbers to a list and then in your script call something like
RTEXTIMAGE to make an image out of it. Hope this helps.Cheers,
-Mike
|