Question

I have problem using cpselectto find control point selection for my images in fits format, this command cannot display the images with fits format. generally, I want to coregister two images in fit formats, so far I couldn't figure it out how to do it, however I knew how to use imtransformand 'cp2tform'.

Was it helpful?

Solution

You will need to read the images in first, and then give cpselect the names of the variables you stored the image in, rather than just the filenames of the images.

Try fitsinfo(filename) first and then fitsread - it may be as easy as something like:

image1 = fitsread('first.fits','image');
image2 = fitsread('second.fits','image');
cpselect(image1,image2);

But you need to check fitsinfo first to determine how to proceed in your specific case.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top