필터 지우기
필터 지우기

segment an image into portions..

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2015년 4월 22일
편집: Elysi Cochin 2015년 5월 7일
i have a image, please can someone help me, to segment it into regions
i applied otsu threshold binarization to the image, and got a binary image,
from the binary image is it possible to get the top, bottom, left, right and center regions as a box region...
bw = im2bw(Gray, graythresh(Gray));
  댓글 수: 2
Michael Haderlein
Michael Haderlein 2015년 4월 22일
Do you want to do this based on the color (or grayscale) information or just based on the location?
Elysi Cochin
Elysi Cochin 2015년 4월 22일
color or gray does not matter, sir... is it possible to get such portions....

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

채택된 답변

Image Analyst
Image Analyst 2015년 4월 22일
Find the centers of each zone automatically. The centroid will be at the center - use regionprops(). The others you can get by using imerode on the binary image to shrink the mask, then take the north, south, east and west pixels. Use find() for that. Now you have the centers of each zone. Then use voronoi() to get the zones themselves.
  댓글 수: 6
Elysi Cochin
Elysi Cochin 2015년 4월 24일
sir i didnt get... how to use voronoi..
Image Analyst
Image Analyst 2015년 4월 24일
I will have not much time this weekend. I'm leaving this afternoon to go camping for the weekend, so hopefully you can get it done without me. I haven't used voronoi much lately so I'd have to figure it out just like you, from the help. But I know that it divides an image up into zones based on equidistant lines between points. I think there are examples so hopefully you can figure it out without me.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by