Warning: Single line Edit Controls can not have multi-line text
조회 수: 7 (최근 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!