Edge detection method for image cropping

3 ビュー (過去 30 日間)
RX Ragul
RX Ragul 2021 年 3 月 14 日
コメント済み: Image Analyst 2021 年 3 月 24 日
For this image I need to get the silver part alone as image for detecting the defects in it. I have written the code for detecting defects. I need a support to crop the silver part and save it as seperate image.

回答 (2 件)

Matt J
Matt J 2021 年 3 月 14 日
  3 件のコメント
Matt J
Matt J 2021 年 3 月 14 日
Why? The work has been done for you already.
RX Ragul
RX Ragul 2021 年 3 月 14 日
need for project

サインインしてコメントする。


Image Analyst
Image Analyst 2021 年 3 月 14 日
編集済み: Image Analyst 2021 年 3 月 14 日
Wow - so many problems with that, where do I start? First of all your image capture conditions are horrible. You should use a black background to make thresholding easier. Black velvet will work nicely. Secondly, from the perspective warp we can tell you're not using a telecentric lens. And it looks like you don't have a mounting jig. Using a mounting jig would ensure that your part is in the same position in every image and you can just use a fixed template to mask off where the part is known to be. Your illumination is horrible. How can you find defects when you have a specular area that's totally saturated!?!?
There's more, but that's enough for starters.
  6 件のコメント
RX Ragul
RX Ragul 2021 年 3 月 24 日
Can you help me out with an example output and a code snippet, because i cannot get you.
Image Analyst
Image Analyst 2021 年 3 月 24 日
Post an image from your now improved image capture system, and indicate exactly where in the image the defacts are.

サインインしてコメントする。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by