Program mast
1) load images to axes
2) when you push down Ctrl+mouse button and move it the program draws
a line on the image
3) Zoom image , scroll it in axes
4) save this image to file
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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.