How to imbinarize Cell nucleus
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/594965/image.png)
How can I just imbinarize dark purple Cell nucleus ? How can I detect Cell nucleus?
0 件のコメント
回答 (1 件)
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!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Microscopy についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!