31-Dec-2024 18:52:46 maple_data_test(): MATLAB/Octave version 6.4.0 maple_data() determines the boundary of the image of a maple leaf. maple_data(): Extract a polygonal boundary between a black exterior and a white interior, from an image of a maple leaf. Apply im=imread ( maple_bw.png ) to extract image data from file size(im) = 387 rows by 391 columns using 3 colors. im=im2bw(im,0.5) converts image to black and white (1 color). 387 391 im=imcomplement(im) converts image to black around white. Exact relative area = 0.423264 imshow(im) displays the image. bcell=bwboundaries(im) traces ALL the boundaries. b=bcell{1} extracts the first (and only, we hope) boundary. b(:,1)=387+1- b(:,1)) corrects reflected X coordinates. Polygonal boundary involves 1776 vertices. maple_data_plot(): Display a plot of the boundary of the maple leaf. Graphics saved as "maple_data.png" Boundary vertices written to file "maple_data.txt" maple_data_test(): Normal end of execution. 31-Dec-2024 18:52:46