How to imbinarize Cell nucleus

조회 수: 1 (최근 30일)
Onur Demir
Onur Demir 2021년 4월 23일
답변: Pratyush Roy 2021년 5월 10일
How can I just imbinarize dark purple Cell nucleus ? How can I detect Cell nucleus?

답변 (1개)

Pratyush Roy
Pratyush Roy 2021년 5월 10일
Hi,
Firstly you can convert the RGB image to a grayscake image using the method rg2gray/ After this, you can use imbinarize with a threshold for converting grayscale image to binary image. The code snippet below illustrates how to obtain the cell nucleus:
cell_img = imread("cell_nucleus.png");
cell_img_gray = rgb2gray(cell_img);
BW = imbinarize(cell_img_gray,0.35); % The threshold is set to a low value of 0.35, so that only the dark purple pixels are obtained as black.
imshow(BW)
Hope this helps!

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by