Multiplying pixel values by a function??
jcely wrote on Oct 13, 2009
I'm working on images of a diffuse, expanding nebule (eta car). And my prof wants me to mask out parts of the image so only certain parts are used in a cross correlation to align images.
It seems like a pretty simple idea, but i don't know how to read in pixels and based on their x,y coordinates, multiply it by a function. I'm trying to do this in C++, since i can't find an iraf task to do this, and have the cfitsio.h library but it doesn't seem to have something to read pixel values.
thanks for your help.
Justin
It seems like a pretty simple idea, but i don't know how to read in pixels and based on their x,y coordinates, multiply it by a function. I'm trying to do this in C++, since i can't find an iraf task to do this, and have the cfitsio.h library but it doesn't seem to have something to read pixel values.
thanks for your help.
Justin
Mike Fitzpatrick wrote on Oct 13, 2009
See the IMEXPR task help page. You can create an expression that uses the pixel position in some way, and you can create a pixel mask by specifying the output image as a .pl file. You might also use the REFERENCES task to search for other mask-making tasks e.g. text2mask, mskexpr, etc.
-Mike
-Mike
jcely wrote on Oct 13, 2009
thanks that was perfect!
Last post on Oct 13, 2009