Image registration
any ideas on how to do a simple image registration (I have IMAGE1 and IMAGE2 takes from the same subject, but with camera moving a little and want to match IMAGE2 with IMAGE1)? I checked MANY softwares to do that, but they're all focused on medical images, so I couldn't input a simple JPEG (one eve开发者_StackOverflow社区n allowed PGM, but didn't work).
thanks
There is an excellent package called "ANTS", which you should refer to:
http://www.picsl.upenn.edu/ANTS/
You may also like to look into a popular package called "ITK":
http://itk.org/
To solve this problem you need to break it up into managable steps. 1. You have to have a set of similar points (this is typically found by feature detection) or user selection. 2. Once you have the points needed you need to find the transformation matrix between the two images (based on the given points you recieved). 3. Use the transformation matrix to translate one image onto another.
Things That Should Help:
- Feature Detection Algorithms: SIFT
- Topic that this is under in computer vision: Photo stitching, Homographies, Image Registration
There is a very easy way to perform it on slicer, look at the package: general registration you can simply insert your images, define your registration type and your transformation file and then run it.
Simple ITK, primarily for medical, will read .jpg's and has the full suite of registration tools.
reader = sitk.ImageFileReader()
reader.SetImageIO("JPEGimageIO")
reader.SetFileName(inputImageFileName)
image = reader.Execute();
精彩评论