フィルターのクリア

dividing binary image using GUI

4 ビュー (過去 30 日間)
Varian Adisuryo
Varian Adisuryo 2016 年 7 月 28 日
コメント済み: Varian Adisuryo 2016 年 8 月 6 日
Hello, So I have a footprint in binary image and I have to divide it into 3 area with the same length but without the fingers. I have to do it using GUI.Is there any way how to do it? If it help, I give the picture about how to divide it above. Thank's a lot.

採用された回答

Image Analyst
Image Analyst 2016 年 7 月 28 日
Just figure out the row numbers, for example
[rows, columns, numberOfColorChannels] = size(binaryImage);
row1 = round(rows/3);
row2 = round(2*rows/2);
topThird = binaryImage(1:row1, :);
middleThird = binaryImage((row1+1):row2, :);
bottomThird = binaryImage((row2+1):end, :);
  13 件のコメント
Image Analyst
Image Analyst 2016 年 8 月 6 日
Make sure your slider goes from 0 to 255, then get its value and don't use im2bw, just threshold it.
In the slider callback:
sliderValue = get(handles.slider1, 'Value');
thresholdValue = uint8(sliderValue);
% Now apply the threshold to make a binary image.
a_bw = a_gray > thresholdValue;
Varian Adisuryo
Varian Adisuryo 2016 年 8 月 6 日
wow it work perfectly. thank you, thank you, thank you so much sir for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiomedical Imaging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by