Highlight a specific part within an image

조회 수: 8 (최근 30일)
Mariam Ramzi
Mariam Ramzi 2021년 10월 22일
댓글: Image Analyst 2021년 10월 24일
I would like to ask how to read a picture, and then distinguish if there is something inside this picture from another picture is also included.
Depending on the attached images , I would like, for example, to insert image 1 and then identify and define the non-smooth part based on an image containing a non-smooth part, I will include it.
The goal is to highlight areas of an image that are rough and smooth in nature.
Knowing that the images of the original sample will differ each time, and the system has to distinguish that area due to the same image of the part.
I hope I was able to convey the idea and I hope to find an answer.
thanks
  댓글 수: 2
DGM
DGM 2021년 10월 23일
편집: DGM 2021년 10월 23일
Define "something inside this picture [say picture A] from another picture [B] is also included".
Does that mean that picture B is a subset of A, or does that merely mean that some feature of B is similar to some feature in A? If the latter, what defines "similar"?
If the goal is simply to find the location of textured regions of A, what is the purpose of using B?
Mariam Ramzi
Mariam Ramzi 2021년 10월 23일
편집: Mariam Ramzi 2021년 10월 23일
thank you for your comment
Yes the idea is to find specific areas in A (areas of a rough nature) I used B because I could not find another alternative and I thought this is the easiest way, I hope to find a more effective way

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2021년 10월 23일
Try something like stdfilt() or entropyfilt() to identify the rough region.
  댓글 수: 4
Mariam Ramzi
Mariam Ramzi 2021년 10월 24일
Thank you very much for the answer
I appreciate that
But I have a question about the " mask", what exactly does it do, here was my mistake in my previous code
Image Analyst
Image Analyst 2021년 10월 24일
@Mariam Ramzi, I did not see your previous code because you did not attach it. In my code, mask is a binary image gotten by thresholding the standard deviation image. The resulting image is true wherever there is high standard deviation (meaning the image is rough there), and false where there is low standard deviation (meaning the image is smooth there). I can analyze your code for the problem but you'd have to attach it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by