VolViewer commands by function: Difference between revisions

From BanghamLab
Jump to navigation Jump to search
(Created page with 'Return to VolViewer Scripting in more detail<br> [http://dmbi.nbi.bbsrc.ac.uk/index.php/VolViewerScriptsAPI Full list of VolViewerScriptsAP…')
 
No edit summary
Line 2: Line 2:
[http://dmbi.nbi.bbsrc.ac.uk/index.php/VolViewerScriptsAPI Full list of VolViewerScriptsAPI]  
[http://dmbi.nbi.bbsrc.ac.uk/index.php/VolViewerScriptsAPI Full list of VolViewerScriptsAPI]  
=Selection of VolViewer commands=
=Selection of VolViewer commands=
The Matlab 'VolViewer' class library provides ''commandsVOL'' which will pass commands to VolViewer, e.g. in Matlab<br>
VO=commandsVOL(VO,'set_clear_all_MSR()')
VO is a VolViewer object created by Matlab when it launches VolViewer with<br>
VO=VolViewer(1,'D:\VolViewer_x64','D:\VolViewer_x64')
where 'D:\VolViewer_x64' is the path to both VolViewer itself and the location of a 'WatchFile.txt' into which commands are written.
{| border="0" cellpadding="1" cellspacing="1"
{| border="0" cellpadding="1" cellspacing="1"
|width="100pt"| '''Image'''||open_image_stack(int channel, 'somepath\slice000.png') directory of image slices
|width="100pt"| '''Image'''||open_image_stack(int channel, 'somepath\slice000.png') 0 all, 1 red, 2 green, 3 blue, directory of image slices
|-
|-
|  ||save_image_stack('somepath')
|  ||save_image_stack('somepath')
Line 14: Line 19:
|-
|-
|  ||save_omero_image('name', 'description') (in preparation)
|  ||save_omero_image('name', 'description') (in preparation)
|-
| ||--------
|-
|-
| width="100pt"| '''Objects'''||open_msr('somepath\file.msr') points, lines and facets placed around images
| width="100pt"| '''Objects'''||open_msr('somepath\file.msr') points, lines and facets placed around images
Line 26: Line 33:
|-
|-
|  ||save_tfn('somepath\file.tfn')
|  ||save_tfn('somepath\file.tfn')
}
}

Revision as of 18:48, 1 March 2012

Return to VolViewer Scripting in more detail
Full list of VolViewerScriptsAPI

Selection of VolViewer commands

The Matlab 'VolViewer' class library provides commandsVOL which will pass commands to VolViewer, e.g. in Matlab

VO=commandsVOL(VO,'set_clear_all_MSR()')

VO is a VolViewer object created by Matlab when it launches VolViewer with

VO=VolViewer(1,'D:\VolViewer_x64','D:\VolViewer_x64')

where 'D:\VolViewer_x64' is the path to both VolViewer itself and the location of a 'WatchFile.txt' into which commands are written.

Image open_image_stack(int channel, 'somepath\slice000.png') 0 all, 1 red, 2 green, 3 blue, directory of image slices
save_image_stack('somepath')
open_image_raw(int channel, 'somepath\myfile.raw')
save_image_raw('somepath\file.dat')
open_omero_image('imageid') (in preparation)
save_omero_image('name', 'description') (in preparation)
--------
Objects open_msr('somepath\file.msr') points, lines and facets placed around images
save_msr('somepath\file.msr')
open_slc('somepath\file.slc') clipping planes
save_tfn('somepath\file.slc')
open_tfn('somepath\file.tfn')') transfer function, i.e. brightness/contrast/thresholds
save_tfn('somepath\file.tfn')

}