Clear Filters
Clear Filters

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

8 views (last 30 days)
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);

Accepted Answer

Steven Lord
Steven Lord on 15 Mar 2020
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.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!