Spatial Image Calibration, Image Processing Toolbox



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
.



Relevant Pages

  • An unexpected exception has been detected in native code outside the VM
    ... I was using the image processing toolbox for visualizing some database ... MATLAB was closed itself and a log ... An unexpected exception has been detected in native code outside the ...
    (comp.soft-sys.matlab)
  • Re: Image Types in Matlab
    ... Most MATLAB and Image Processing Toolbox routines make no particular assumptions about data ranges. ... Image Processing Toolbox routines have supported single precision, double precision, and all the common integer types since 2001, and MATLAB arithmetic has supported single precision and the integer types for a couple of years now. ...
    (sci.image.processing)
  • Re: Attempt to execute script radon as a function
    ... I am a novice Matlab user. ... processing job and am facing a curious problem. ... Radon function which is a part of image processing toolbox. ...
    (comp.soft-sys.matlab)
  • Re: matlabs qtdecomp with custom function.
    ... Your questions seem to have more to do with getting start in MATLAB than with image processing, so you might have more luck asking for help in comp.soft-sys.matlab. ... The Image Processing Toolbox documentation does assume some familiarity with MATLAB. ...
    (sci.image.processing)
  • Re: Invariant to rotation - Polar images
    ... > still return the correct rotation angle even if the two images are ...
    (comp.soft-sys.matlab)

Loading