?? guihelp.m
字號:
function guihelp(action)
% GUIHELP Handles different HELP files in GUI
% All the software included in this package is presented as is.
% It may be distributed freely. The author can, however, not be
% held responsible for any problems whatever.
%
% Designed by Johan Baeten.
% Last updated: 22-03-2000
% Johan.baeten@mech.kuleuven.ac.be
if strcmp(action,'help'),
ttlStr='GUI General Help ...';
hlpStr= ...
[' '
' When using the Contour Fitting Graphical '
' User Interface, look to the messages on '
' the bottum of the main window. They '
' obtain valuable information. '
' '
' Be aware that the help text in this '
' window may be longer then what you see! '
' To Scroll, click into the text-window '
' and use the up- and down-arrows. '
' '
' The GUI can be used to open images, '
' select points in the image and fit '
' different curves through these points. '
' There is an important difference between '
' "File" which refers to points and fits '
' and "Image" which speaks for itself. '
' '
' Remarks are always welcome ... '
' '];
uitleg(ttlStr,hlpStr);
seterror(' Try and you''ll see. ');
elseif strcmp(action,'mainhelp'),
ttlStr='Help on Main menu ...';
hlpStr= ...
[' '
' "Open File" retrieves saved data. '
' Saving your workspace with "Save File As"'
' saves all presently visible data in '
' "MAT"-format, except the image. '
' '
' "Print" opens the print menu. When '
' printing to a file only (postscript) '
' ".PS"-format is supported. '
' '
' Try "Restart GUI" (after saving) '
' when something went totally wrong. '
' "Exit GUI" will end the GUI and return '
' to the Matlab prompt. '
' "Quit Matlab" also closes Matlab. '];
uitleg(ttlStr,hlpStr);
seterror(' Try and you''ll see. ');
elseif strcmp(action,'imagehelp'),
ttlStr='Help on the Image menu ...';
hlpStr= ...
[' '
' "Open Image" and "Save Image As" use as '
' default file extention ".PGM". Also possible '
' is ".GRY". '
' The GRY-format is not recommanded because '
' the image size are not stored together with '
' the file so you must remember them yourself. '
' When loading a GRY-file the sizes set by "Set '
' Image Sizes" in the settings menu are used. '
' '
' "Redraw ..." redraws the present image or axes. '
' When redrawing all data is saved in temps.mat. '
' '
' "Hide Image" and "Show Image" toggle the '
' image''s visibility. The image is never deleted. '
' "Clear Fit" deletes all fits. '
' "Clear All" clears fits and points. '];
uitleg(ttlStr,hlpStr);
elseif strcmp(action,'settingshelp'),
ttlStr='Help on the Settings menu ...';
hlpStr= ...
[' The "Image size" setting is only important '
' when using ".GRY" images. (See image help) '
' '
' Use the "View Size" setting to make the '
' displayed image bigger or smaller. When '
' set to "Auto" the veiw size will depend '
' on the actual sizes of the loaded image. '
' '
' The "Sort Options" setting refers to the '
' sort control button in the Fit Controls. '
' Sorting the contour points may be important'
' when using spline fits. The first point in '
' the list is always the starting point for '
' the spline fit. '
' '
' If "Show Curvature after Fit" is selected, '
' the curvature profile is shown. '
' '
' If "Extrapolate" is selected a polynome fit'
' is also evaluated outside the region of '
' the actual contour points. '];
uitleg(ttlStr,hlpStr);
elseif strcmp(action,'functionshelp'),
ttlStr='Help on the Functions menu ...';
hlpStr= ...
[' '
' With "Show Interactive Fit Console" the '
' fit console can be made visible again if '
' closed. '
' '
' "Tangent at Center" calculates and shows '
' the tangent to the contour of the image at '
' the center, provided an edge is present. '
' '
' "ISEF Edge Detection" is an automatic '
' procedure to detect several contour points '
' in the present image. The procedure starts '
' at the bottom line and follows the contour '
' upwards. '
' '
' "Capture" and "Grab Image from DSP" are '
' disabled. '
' '];
uitleg(ttlStr,hlpStr);
elseif strcmp(action,'fithelp'),
ttlStr='Help on the Fitcontrols ...';
hlpStr= ...
[' '
' The Fit control contains following buttons: '
' '
' "Add Point": Enables the selection of points '
' using the mouse or by typing into the list. '
' '
' "Delete": Enables deleting points by clicking '
' onto the point or onto a listnumber. '
' '
' "Edit/Move": Enables draging a point to a '
' different location or editing a listvalue. '
' '
' "Sort": Sorts the list of points in ascending or '
' descending order in x or y depending on the '
' "Sort options" setting. The order of the points '
' is very important when using e.g. Cubic Splines. '
' '
' "ISEF Edge" performs the ISEF edge procedure (See '
' help on Functions menu). '
' '
' "Clear All" deletes all selected points and fits. '
' '
' "Clear Fit" only deletes the current fits. '
' '
' "Fit" calculates and draws a fit through the '
' selected points using the "Fit points by"-model '
' (See also Fit Model help) '
' '
' "Close" will close the Interactive Fit Console. '];
uitleg(ttlStr,hlpStr);
elseif strcmp(action,'modelhelp'),
ttlStr='Help on the used Fit Models ...';
hlpStr= ...
[' '
' Currently there are 12 different fit models '
' supported. '
' 1) First order lines '
' '
' 2) Full Second order function (Fit by Total '
' Least Squares Method): '
' ax^2 + bxy + cy^2 + dx + ey + f = 0 which is'
' an ellipsoid, parabolic or hyperbolic. '
' '
' 3) Third order polynome in either x or y '
' depending on the selected points. '
' y = ax^3 + bx^2 + cx +d or '
' x = ay^3 + by^2 + cy +d '
' '
' 4) (Hermite) Cubic Splines '
' For a good fit the selected points must be '
' monotonic in either x or y. '
' yk= ak(x-xk)^3 + bk(x-xk)^2 + ck(x-xk) +dk '
' or '
' xk= ak(y-yk)^3 + bk(y-yk)^2 + ck(y-yk) +dk '
' '
' 5) Matlab''s Cubic spline fit: '
' See matlab''s help. '
' '
' 6) Smoothing cubic splines '
' These have the same model as 4 but the '
' tangents in the nods are selected so that '
' the second derivative is continuous. '
' '
' 7) (Hermite) Parametric (Cubic) Splines '
' Cubic splines as a function of a parameter '
' u, being the point number (1,2, ...) '
' yk= ayk(u-uk)^3+byk(u-uk)^2+cyk(u-uk)+dyk '
' xk= axk(u-uk)^3+bxk(u-uk)^2+cxk(u-uk)+dxk '
' '
' 8) Parametric Natural (Cubic) Splines '
' Same as 7) but different choice for the '
' tangent values in the nods. '
' '
' 9) Parametric third order polynome '
' y(u) = ayu^3 + byu^2 + cyu +dy and '
' x(u) = axu^3 + bxu^2 + cxu +dx '
' '
' 10) Parametric Arclength (Cubic) Splines '
' Same as 7) but the independant parameter is'
' the arclength s. So, yk(s) and xk(s). '
' '
' 11) Parametric Arclength Natural Splines '
' Same as 8) but the independant parameter is'
' the arclength s. So, yk(s) and xk(s). '
' '
' 12) Parametric Arclength 3rd order polynome '
' Same as 9) but the independant parameter is'
' the arclength s. So, y(s) and x(s). '
' '];
uitleg(ttlStr,hlpStr);
elseif strcmp(action,'extrashelp'),
ttlStr='Help on the Extras menu ...';
hlpStr= ...
[' '
' "Zoom On" is a toggle that allows the users'
' to zoom the image by selecting an area with'
' the mouse. '
' '
' When the zoom function is on the user may '
' select the axes to be "Auto". This means '
' that Matlab controls the x- and y-notations'
' on the axes. Be aware that in this case '
' the indicated values are shifted 1/2 pixel.'
' '
' If the "Add","Delete" or "Edit" controls '
' are used the zoom function is no longer '
' active, but the image stays in the zoomed '
' state. Use "Zoom Off" to return to the '
' original image. '
' '];
uitleg(ttlStr,hlpStr);
end;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -