Warning: Single line Edit Controls can not have multi-line text

11 ビュー (過去 30 日間)
vidhya v
vidhya v 2020 年 3 月 15 日
コメント済み: vidhya v 2020 年 3 月 15 日
hello all,
In feature extraction, i want to show only the calculated values of area, perimeter, diameter and circularity of pap-smear image. But i am getting above warning. I dont know what to do for this. please suggest me how can i get this solved. It's very urgent.
Thanking you
This is my code:
bin = imbinarize(img_comp_s);
J = imcomplement(bin);
props = regionprops(J,'Area');
allarea = [props.Area];
props = regionprops(J,'Perimeter');
allperim = [props.Perimeter];
props = regionprops(J,'EquivDiameter');
alldiameter = [props.EquivDiameter];
props = regionprops(J,'Eccentricity');
alleccent = [props.Eccentricity];
measurements = regionprops(J, 'Area', 'Perimeter');
allAreas = [measurements.Area];
allPerimeters = [measurements.Perimeter];
circularity = allPerimeters .^ 2 ./ (4 * pi * allAreas);
set(handles.edit16,'string',allarea);
set(handles.edit17,'string',allperim);
set(handles.edit18,'string',alldiameter);
set(handles.edit19,'string',circularity);
set(handles.edit20,'string',alleccent);

採用された回答

Steven Lord
Steven Lord 2020 年 3 月 15 日
Change the Min and/or Max properties of your edit boxes so the difference between those two property values (Max - Min) is strictly greater than 1. If the difference is greater than 1 the edit box can contain multiple lines of text. Otherwise the edit box can only contain one line of text. The default values are Min = 0, Max = 1 which means by default the edit box can only contain one line of text.
  1 件のコメント
vidhya v
vidhya v 2020 年 3 月 15 日
Ok sir. I got it. Thank you so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Analytics Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by