Warning: Single line Edit Controls can not have multi-line text
12 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Analytics Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!