필터 지우기
필터 지우기

Can anyone tell me how to extract and crop the roi based on its gray level profile?

조회 수: 4 (최근 30일)
I have taken up following steps after detection of a refernce axis using hough lines.. detected the profile (using improfile function) stored the x, y coordinates in arrays vth corresponding value of intensity profile for each co-ordinate pair using a for loop.
now i want to extract the regions having regional maxima-minima-maxima in gray level profile. then i want to crop the extracted roi. I am a new to image processing so kindly guide step by step.

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 11일
Try imregionalmax() and imregionalmin(). See my image segmentation tutorial to learn how to find objects based on their intensity and crop them into new sub-images.
If you want to identify stretches of your 1D intensity profile vector obtained from improfile(), you can use thresholding:
aboveThreshold = yourProfileArray > someThresholdValue;
Not sure why you'd want to extract stretches of that 1D vector into individual short vectors, but if you tell me why, I'll tell you how to do it, or tell you how to do what you want to do without doing extracting sub-lines.
  댓글 수: 5
Richa Nayak
Richa Nayak 2013년 1월 18일
Only yesterday got the image vth the roi shown.Thanks a lot for the help. will try to merge my algorithm vth cell segmentation rite now. will let u know if any difficulty arises.

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

카테고리

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