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 次查看(过去 30 天)
显示 更早的评论
vicky v
2019-3-21
7 个评论
vicky v
2019-3-22
Sorry,I dont have seperate images.This is the aligned image,it might be of some help..
Image Analyst
2019-3-24
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
2019-3-24
@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.
回答(2 个)
Image Analyst
2019-3-24
- 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
2019-3-25
编辑:vicky v
2019-3-25
@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 个评论
Image Analyst
2019-3-25
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
2019-3-25
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
2019-3-25
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
2019-4-10
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
2019-4-10
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
2019-4-10
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
2019-4-15
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
2019-4-16
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
2019-4-19
sir i have completed the motor control part,only this alignment part is not completed.
How to use this to regenerate the occluded image??
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)