|
I suggest you use the 'Guide' GUI matlab tool. Type 'guide' in the command window and the wizard will load. Lay out the GUI as you want using the controls on the left toolbar.
If you right click on each control once placed you can open the property inspector to change certain things about it, and also create a callback for each control. You will have to do this to achieve the 4 points you outlined. In the callback .m file you will probably use the following functions:
> 1) load images to axes
Give focus to the axes with 'axes(handles.axes1)' or whatever number it is. Use 'imshow' to show the image in that axes.
> 2) when you push down Ctrl+mouse button and move it the program draws a line on the image
Not sure why you would want to have to hold down 'control' to do this. Try 'imline'.
> 3) Zoom image , scroll it in axes
Use 'zoom'.
> 4) save this image to file
Use 'saveas'.
With all of these type 'help' before it in the command window and details about how to use them will display. It sounds like you also need to understand how to use callbacks with a GUI, and similarly there is documentation available for this from the help.
Have a try using those functions I suggest and if you have a specific problem post again.
|