You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
I Need to align these two fiducial marks?i am new to image processing and i dont have any idea about how to do it.so can any one help me with the code
4 views (last 30 days)
Show older comments
7 Comments
vicky v
on 22 Mar 2019
Sorry,I dont have seperate images.This is the aligned image,it might be of some help..
Image Analyst
on 24 Mar 2019
My algorithm below works on only a frame at a time but it might be fast enough to appear "real time". Did you even attempt it?
Matt J
on 24 Mar 2019
@vicky, if the image you have posted is just an example, then please post more example images so we get a more complete sense of the problem.
Answers (2)
Image Analyst
on 24 Mar 2019
- Threshold,
- use bwareafilt to extract largest blob (the L-shaped blob).
- Use regionprops() to compute centroid.
- Compute deltax and deltay from reference image.
vicky v
on 25 Mar 2019
Edited: vicky v
on 25 Mar 2019
@Image analyst,this image is after using otsu threshold method.
when i use bwareafilt the whole image goes black??
i need to find the centroid of both the marks?
14 Comments
Image Analyst
on 25 Mar 2019
Again, you need a reference (fixed) image, and a moving image -- TWO images, not a single image. Then you can try imregister() or friends.
vicky v
on 25 Mar 2019
So you are saying i need a database of reference images?
Other problem is the marks are dynamic.It can be square,circular or the above L shaped marks.
can you suggest an generalized algorithm,so that it could work for any of the marks used.
i thought of using pattern matching.
Image Analyst
on 25 Mar 2019
Some of the registration functions they have are more robust as to how much of the images need to overlap and how much can be different/missing/occluded.
Image Analyst
on 10 Apr 2019
I have no idea what the backside is. Please attach the images containing ONLY the light L+ and the image containing ONLY the dark L+. We don't want one where the light L+ is superimposed over the dark L+ image.
Image Analyst
on 10 Apr 2019
Well how can we align (translate) a light L+ image to match the L+ position in a dark L+ image if you don't have each image separately?
Please supply a mock up of what image you'd like to end up with.
Image Analyst
on 10 Apr 2019
Uh, okay, but what two images do you want to superimpose to create that? Where are your two input images -- the fixed one, and the "moving" one which is the one that will be translated to overlap your "fixed" one?
Image Analyst
on 15 Apr 2019
SO, since you didn't provide the two images, I brought the single image into Photoshop to create the two images.
So is the movable one this:
and the fixed one this:
????
Would those be your two images? If so, can you post the actual two images so we're working off yours and not the Photoshop created versions?
What I'd probably do is to find the centroids of the two shapes and find the average delta x and delta y from the fixed image, and then use imtranslate to shift the moving one so the shapes are in the same location as the fixed image.
vicky v
on 16 Apr 2019
Yes sir these are the two input images, I have asked them for seperate images but they said they don't have it..
I need work on this only.
Can't we use this sir.
vicky v
on 19 Apr 2019
sir i have completed the motor control part,only this alignment part is not completed.
How to use this to regenerate the occluded image??
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)