Detecting shapes-lsm format?

조회 수: 3 (최근 30일)
Sameer Dixit
Sameer Dixit 2012년 5월 24일
I want to detect the number of blue coloured spots (nuclei to be precise) in an image of lsm format using matlab, however writing the code below is not detecting the shapes at all, instead as i do imshow a white page opens up.(Indicating that the entire picture has been converted into white) code: i=imread('01.lsm'); imshow(i) BW = im2bw(i, 0.9); BW = ~BW; imshow(BW)
Is it a problem with the code or with the format? Thanx in advance.

답변 (1개)

Stephen
Stephen 2012년 5월 24일
try looking at hist(i,100) and picking out a threshold manually. somewhere to the right of the big background spike on the left.
  댓글 수: 1
Stephen
Stephen 2012년 5월 24일
oh and imclearborder() bw=bwareaopen() and imfill(bw,'holes') could be pretty useful for you too

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by