Display image on axes with lines plotted on the image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I have an image which contains four circles on the four corners. Input_Img.png is the input image.
I am detecting four circles on the input image using the following function [centers, radii, metric] = imfindcircles(Input_img,[10 80]);
Centers ,radii are obtained for these circles.Using these as the input i am marking the circles on the input image using the following function.
%Draw the circles %
[h,xcoord,ycoord]=viscircles_1(centers, radii,'EdgeColor','b');
Input_Img_Circ.png is the image after drawing the circles
The opposite circles are joined using the following function line([xcoord(:,:)],[ycoord(:,:)],'Color', 'y', 'LineWidth', 3);
Input_Img_CircLine.png is the image after drawing the line.
Now i need to display the same figure in MATLAB GUI on an axes.
It would be grateful if you let me know how to display this in GUI.
I am attaching here the images for your reference.
Looking forward to hear from you at the earliest.
Thanks. Pankaja
0 Kommentare
Antworten (1)
Image Analyst
am 25 Jul. 2015
Looks like you already got it into an axes on a figure, but by asking for a GUI I assume you want something more sophisticated, with buttons, listboxes, and things like radio buttons and sliders to set various options and parameters. In that case, try MAGIC: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component. It's a nice framework to get you started. It has all the various controls on it so you can delete the ones you don't need or insert your code into the callbacks of the controls that you want to keep and use.
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!