필터 지우기
필터 지우기

Help removing unwanted lines from image and identify spots

조회 수: 5 (최근 30일)
Elad
Elad 2012년 2월 2일
After some enhancement I get the following image: http://i44.tinypic.com/2jfwsnd.jpg I want to identify the spots which clearly has a circle like shape, but the lines make it hard. any suggestions?

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 2월 2일
  1. Threshold to create a binary object
  2. bwareaopen() to get rid of small stuff
  3. imopen to get rid of lines;
  댓글 수: 2
Elad
Elad 2012년 2월 3일
Thanks!
that really pointed me to the right direction.
Image Analyst
Image Analyst 2012년 2월 3일
Thresholding may not be necessary. Opening may get rid of the small stuff by itself, depending on how small the stuff is you want to get rid of. imopen works on a gray scale image in addition to a binary image. You could then threshold, then multiply the binary image by the gray image to get a gray scale image unaltered except where the lines were. Opening will alter the original even where you maybe don't want it to. Then you could use roifill on that masked image to get a relatively nice "fixed up" gray scale image, if you happen to need or want that. But if your main goal is to measure the round spots and it can be thresholded adequately then might as well threshold as the first step and then get rid of lines, like Sean said.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by