VolViewer access from Matlab: Difference between revisions
Jump to navigation
Jump to search
(Created page with '===VolViewer class libary=== *'''VolViewer'''.m **''VOL=VolViewer;'' % creates a VolViewer object *'''set'''.m **''VOL=set(VOL,'attribute',value);'' % sets an attribute (field) i…') |
No edit summary |
||
Line 11: | Line 11: | ||
===VolViewer auxilary library - uses the class library=== | ===VolViewer auxilary library - uses the class library=== | ||
*'''imshowVOL'''.m | *'''imshowVOL'''.m | ||
**''VOL=imshowVOL( 'PathToImages','E:\MATLAB\3D Arabidopsis Leaf Shape Models\SN20#1L1_x0p98y0p98z0p80conf');'' %Where 'SN20#1L1_x0p98y0p98z0p80conf' is the name of a directory containing a stack of png images | **''VOL=imshowVOL( 'PathToImages','E:\MATLAB\3D Arabidopsis Leaf Shape Models\SN20#1L1_x0p98y0p98z0p80conf');'' %Where 'SN20#1L1_x0p98y0p98z0p80conf' is the name of a directory containing a stack of png images to be displayed in VolViewer. The command will '''automatically create a VolViewer object''' - which should be used in any further calls to VolViewer. Unfortunately, there is (at present) no way for Matlab to verify that VolViewer is actually running, so don't close it causually. | ||
===VolViewer demonstrations=== | ===VolViewer demonstrations=== |
Revision as of 18:36, 28 February 2012
VolViewer class libary
- VolViewer.m
- VOL=VolViewer; % creates a VolViewer object
- set.m
- VOL=set(VOL,'attribute',value); % sets an attribute (field) in the VolViewer object. More than one attribute:value pair can be set in one call.
- get.m
- attribs=get(VOL,'attribute1','attribute2'); % gets a attributes (field) from the VolViewer object. More than one can be retrieved in one call. attribs is a cell array.
- display.m
- VOL %This overloads the normal display routine. Thus, leaving off the semicolon causes the object to be displayed
VolViewer auxilary library - uses the class library
- imshowVOL.m
- VOL=imshowVOL( 'PathToImages','E:\MATLAB\3D Arabidopsis Leaf Shape Models\SN20#1L1_x0p98y0p98z0p80conf'); %Where 'SN20#1L1_x0p98y0p98z0p80conf' is the name of a directory containing a stack of png images to be displayed in VolViewer. The command will automatically create a VolViewer object - which should be used in any further calls to VolViewer. Unfortunately, there is (at present) no way for Matlab to verify that VolViewer is actually running, so don't close it causually.