From: Kuldeep Mynampati on
Hi all,

I created a GUI which consist of the a "Play" button which displays image on the axes (MATLAB GUI). Second button called "Create", the function is used to create bounding box (Used imrect function to do this) and every time I click this button I can create a bounding boxes. In this Create Button itself I am setting the properties for each bounding box like Tag : '1', Hittest : 'On', String: '1' etc.. Another button called "Save", which retrieves the coordinates of the bounding boxes on this particular image and stores them in a .mat file.

when I move to next image, I created 2 more bounding boxes. My problem comes here, I am using 'findobj' function to get the number of Bounding boxes on this particular image. When I use 'get' function to get the Properties that I set in create button like Tag : '1' ,String : '1' for Box: 1 and Tag : '2', String :'2' for Box:2. Instead of showing the properties it gives me handle values 29.3 , 43.1..

I am really stuck with this problem for a while. Could any one suggest me a better idea or solution.