InsertText only showing the first text box of multiple.
2 views (last 30 days)
Show older comments
I'm trying to use insertText to overlay multiple text boxes on an image, but only the first text box is showing up and there is no error message. I followed the 'board' example exactly and I've checked that all of the positions are valid and on the image. There are 5 boxes in total.
Here is the code:
width=min(size(circle_blobs));
text=cell(length(ply_thickness),1);
position=zeros(length(ply_thickness),2);
position(:,2)=width/2;
for i = 1:length(ply_thickness)
position(i,1)=starts(i)+(ply_thickness(i)/2);
text{i}=['Layer ' num2str(i) ': ' num2str(ply_thickness(i),'%0.2f')];
end
overlay=insertText(uint8(boundaries)*255,position,text,'AnchorPoint','Center',FontSize=100);
figure
imshow(overlay)
3 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!