Spatial Image Calibration, Image Processing Toolbox
- From: "Steffen R." <rileksn@xxxxxxxxx>
- Date: Mon, 19 Mar 2007 05:32:34 -0500
Dear Matlab community,
I'm rather new to Matlab and the Image Processing Toolbox and I`m
sort of lost finding the right way how to solve the following
practical issue. It`s a little complex, but I hope one can help me
out, maybe it´s almost been done?
I´m trying to laterally align 2 images that I obtain from taking
microscopic images of two different channels. In consequence, I`m
getting two sub-images from the camera in one big frame (simple
example down below -left stars image one, right arrows image 2).
___________
** << |
** << |
|
*** <<< |
*** <<< |
___________|
These two images (each consisting of 2 round dots) should ideally
overlap perfectly fine (it´s a calibration). The final goal is to
gate the image (like cropping the two individually and having a
perfect overlay). Due to various aberrations these two images are not
centered (lateral distinct coordinates, e.g. xy different) and they
may vary in their angle. The big question: How to align the two
images, setting the right centre of each image, correcting eventual
rotation (angle differences) and cropping them?
My plan was to set a treshold and identifiying the two spots of each
image by using ?im2bw(); bwareaopen(); strel('disk',1)?. Then, I was
thinking of defining the centre coordinates and the two dots per
image and thus defining a vector. Can I do this with Matlab & IP
Toolbox and what would the code for that be or are there better ways
to do that?
The following parts I haven´t tried out due to a lack of the previous
step, but I´m happy about any input. Next would be, I guess, to
define the eventual rotational angle and correcting this one by
rotating one image the other way round. Based on the vectors, I could
then set a ROI, crop each image the same size and hopefully I get two
perfectly registered images. Of course, I have to check the result,
for instance by doing a cross-correlation or defining the
colocalization degree. Any idea how to do that?
Well, I know quite a huge issue and I hope no one feels offended
since it is not one specific question. I highly appreciate any input
on how to solve the problem.
Many, many thanks in advance!
Steffen
.
- Prev by Date: screen size in matlab
- Next by Date: plotting multiple graphs with for and end loop
- Previous by thread: screen size in matlab
- Next by thread: plotting multiple graphs with for and end loop
- Index(es):
Relevant Pages
|
Loading