Reporting operations




Compute image statistics


source stat

?-tclReturn?.........Output to Tcl


Returns statistics optionally as a single line of option-values pairs in the format below.

name {imageName}
dimensions {X Y Z T Channels}
sampleSizes {deltaX deltaY deltaZ deltaT}
channelRepr {general purpose | labels | real Fourier transform | complex Fourier transform}
channelConfig {single channel | multiple inner (packed) channels | multiple outer (stacked) channels}
dataType {unsigned byte | 16bit signed integer | 32bit float | complex (2xfloat)}
maxValue <maximum value in image>
minValue <minimum value in image>
maxPos {X Y Z T}
minPos {0 0 0 0}


Tip: This list can be easily converted into an array with the array set Tcl command. An example is given in setp.

Compute image statistics in a ROI


source roistat

?-offset IndexVector (0 0 0 0 0)?.........Offset

?-span IndexVector (1 1 1 1 1)?.........Span

?-flux none | x | y | z | t | all (none)?.........Compute flux along dimensions


Compute image statistics of labeled pixels


source labelStat labels

The argument labels is an image with the same dimensions as source and of an integer type.

Enable or disable the image history log


imageName keepLog

?-off?.........Disables image history log

?-query?.........Returns the current status


Returns: If -query is set, returns the current flag status (0 or 1). Otherwise returns the previous status before setting it.

A history log for each image can be obtionally written automatically after every image operation. This log can be enabled or disabled per image. Without options, switchs the log on. Switch it off in -off is specified. Using -query does not set anything, just reports the current status. See also gLog, history and http://www.svi.nl/ImageHistory.

Retrieve image history


imageName history

?-format xml | tcl | procTcl | txt (txt)?.........Specify the layout: XML, sequential Tcl or structured Tcl

?-details?.........Retrieve also history of parent images

?-tclReturn?.........Output to Tcl

?-save string?.........File to export history


Returns the image history, if the log was enabled. See keepLog, create, open and http://www.svi.nl/ImageHistory.

Append a comment to the image history


imageName comment message


Appends a comment to the image history log, if it is enabled. See keepLog and history.

Manage image annotations


imageName notes

?-collection string.........Collection name

?-key string?.........Key name

?-entry string?.........Entry data to add to the collection

?-tclReturn?.........Output to Tcl

?-test?.........Test if collection or entry exist


Appends an entry to the specified image annotations collection, or retrieves annotations in that collection.

Images in Huygens are associated to a database of information: the annotations. Information is categorized in different collections, each possibly having multiple entries. Some collections are automatically handled by the program, like the history log. A special one called collections gathers all the annotations collections for each image, with the timestamp of last edition of each of them.

If a specific key is provided when using this notes method, the provided entry data is assigned to thay key in the collection (overwriting it if it already exists), or only the value of that key is returned (if no entry is given as an argument).

When you provide an entry to be added to a collection but do not specify a particular key value, a unique timestamp is used as key so that the entry is just appended to the collection without overwriting any other existing one.

If the -test option is used, this method just returns 1 if the collection or key exists, 0 if not.

Compute image range


source range


Returns: range of an image in the following format:

maxValue_<chan> <max> minValue_<chan> <min> ...

A tool to quickly compute the range of an image, i.e. the maximum value and the minimum value in an image as a short form of the command stat.

Compute image histogram


source hist

?-vAxis lin | log | sigmoid (log)?.........Vertical axis mode

?-perc value (50)?.........Percent

?-requestBins value (0)?.........Requested bins

?-chan value (-1)?.........Selected channel

?-frame value (-1)?.........Selected time frame

?-exportData?.........Export Data

?-tclReturn?.........Output to Tcl


With the -requestBins option, the user can set the number of bins. When set to zero, the number of bins will be automatically determined. Note that depending on the dimensions of the image, mininum and maximum values may be applied to the number of bins and therefore the requested number of bins may be honored only if it is within the supported range.

With the -tclReturn option set, the command returns the statistics as a single line in subsequent option-value pairs in the format below.

=>name name of the image showing histogram
median median
percentile {percentile value}
peakCount peak_count
peakNonZeroCount peak_non_zero_count
peakPos {peak_coordinates}
peakNonZeroPos {peak_non_zero_coordinates}
clipCount estimated amount of clipped voxels
binCnt number of bins per channel


When the -exportData option set, the command appends the histogram data to the returned list in the form of two extra list elements data <histogram data>. The histogram data is again an option-value list so it can be easily converted to a Tcl array. The option fields have a format channel0,channel1,channel2,channel3, 'channel' being the bin number for a particular channel. This allows the reporting of up to 4-dimensional histograms. The value to the field is the number of voxels in the bin.

For examples on how to work with parameters in Tcl option-value lists see setp.

Create a two channel histogram from n-channel data


source hist2Ch -> destination r g

?size value (256)?.........Histogram size


Returns: for each of chanR and chanG, the effective map factor, usually <= 1.0 and the offset. In case expansion is necessary the map factor can be > 1.0.

Creates a two channel histogram from channels chanR and chanG of an n-channel image. The dimension of the destination image are square and of size size, its data type float, 2D. The mapping of the pixel data to the histogram bin number is always done by a power of 2 factor to avoid 'hairy' histograms of integer data. If the range of the data is smaller than the histogram size, the histogram is computed with a scaling factor of 1 and subsequently expanded to the desired size.

Example:
testThreeCh hist2Ch -> a 1 2
=>mapFactorR 0.703474930638829 mapFactorG 0.703474930638829 offsetR 0.001074909698218 offsetG 0.002011879114434


Compute Nyquist rate


source nyq

?-na value (1.3)?.........Numerical aperture

?-ri value (1.44)?.........Medium refractive index

?-ril value (1.515)?.........Lens refractive index

?-ex value (488)?.........Excitation wavel. (nm)

?-em value (520)?.........Emission wavel. (nm)

?-pcnt value (1)?.........Excitation photon count

?-s vector (0.05 0.05 0.15 1)?.........Sample distances (micon)

?-pr value (250)?.........Pinhole radius (nm)

?-ps value (2.53)?.........Pinhole spacing (micron)

?-micr confocal | widefield | nipkow | 4Pi | sted | si | spim | brightfield | generic (confocal)?.........Microscope type

?-stedSatFact value (30)?.........STED staturation factor

?-stedLambda value (676)?.........STED inhibition wavelength (nm)

?-sted3D value (0)?.........Percentage of STED 3X

?-spimExc gaussian | gaussianMuVi | scanning | scanningAnnulus | cylinder (gaussian)?.........SPIM excitation mode

?-spimGaussWidth value (4.0)?.........Width of Gaussian plane

?-spimNA value (0.03?.........SPIM plane NA

?-spimFill value (0.5)?.........SPIM excitation fill factor


When -explicit is set this function computes relative Nyquist sampling distances for the specified microscopic parameters; else the images' parameters are used. The computed values are relative to either the specified ot the image sampling distances.

Returns: if -tclReturn is set a list of three relative Nyquist sampling rates; else void. Values > 1 represent sampling better than the Nyquist distance (supersampling) ; values < 1 represent undersampling.

Pinhole radius is given `backprojected'. See the Huygens Essential User Guide or the SVI-wiki 1 to properly calculate them.


Get the dimensions of an image


source getdims

?-mode all | x | y | z | t | ch (all)?.........Dimensions


Returns: single dimension, channel count or a list.

Defaults to `all' at start-up, or to the last option used.

Get image configuration


source getconfig

?-mode all | type | chan | ccode | chans (all)?.........Configuration


Returns: selected image parameter(s).

Provides information on the image type (byte, int, float, complex), the internal channel order (packed or stacked), the channel specification (generalPurpose, spectralComponents, RGBAColors, vectorComponents, tensorComponents, labels, realFourierTrf-inpl, complexFourierTrf, opticRealFourierTrf-inpl, opticComplexFourierTrf,realFourierTrf, realFourierTrf-conj) and the number of channels.

example:

faba32 getconfig -mode all

=>float stacked generalPurpose 1

Defaults to `all' at start-up, or to the last returned parameter if used.



Get or set the image user string


source userstring

?-set string?.........Image user string


Returns: the user string. If no user string was attached, "uninitialized" is returned.

With the optional option -set the image user string can be set to any valid Tcl string no longer than 127 bytes.

This command is useful for advanced tcl programming. To the image a Tcl-command can be added to be parsed later on by a Tcl-script.

The command is only valid for internal images. If an image is saved the string will not be attached to the saved image.



Get a pixel value


source getpix <index vector>

?-im?.........Imaginary part


Returns: the pixel value at the specified point.

If the -im option is not given this is the real part of the pixel value. If the -im option is given the imaginary part is returned. For non-complex pixel values 0 is returned.

See also: setpix.

Interpolate a pixel value


source intpix <vector>

?-mode all | one (all)?.........Mode

?-chan value (0)?.........Selected channel

?-q high | low | trunc (high)?.........Quality

?-im?.........Imaginary part


Returns: the interpolated value at the specified point.

Set a pixel value


source setpix <index vector> <value>

?-im value (0)?.........Imaginary part


Sets the pixel specified by the {IndexVector} (x, y, z, t, and channel index) to the given real value.

See also: getpix.

Set the global history log enable flag


huOpt gLog off|on

?-query?.........Returns the current status


Returns: If -query is set, returns the current flag status (0 or 1). Otherwise returns the previous status before setting it.

Enables or disables the image history logs globally. If -query is specified nothing is set, only the current status is returned. See also keepLog, history and http://www.svi.nl/ImageHistory.

Set the execution log enable flag


huOpt execLog off|on

?-flush?.........Flushes the file after each entry

?-query?.........Returns the current status

?-session?.........Returns the current session timestamp


Returns: If -query is set, returns the current flag status (0 or 1). If -session is set, returns the current session timestamp. Otherwise returns the previous status before setting it.

Enables or disables the execution log and the output of some error messages to a text file. If -flush is specified when turning it on, the execution log file is flushed after each entry, useful to debug crashing bugs. If -query is specified nothing is set, only the current status is returned. Notice that this turning the log file on and off is only available for log files that were created correctly at start up: this will have no effect if writing the log was skipped completely by using the command line option -noExecLog. See http://www.svi.nl/ExecutionLog for more information.

Controlling the number of threads


huOpt cpu

?-min value (0)?.........Minimal threads to be used

?-max value (0)?.........Maximal threads to be used

?-mode compliant | ignore (compliant)?.........System compliancy

?-query <system|min|max|mode>?.........Query the available system threads, the minimal and maximal thread count, or the compliancy mode


By default the software complies to values suggested by the system. If the mode is set to ignore the software will try to force the requested number of threads from the system.

Note: values to unspecified options are not set to defaults; instead they are not set at all.

Returns: when -query is present, the specified parameter.

Controlling the thread affinity


huOpt setAffinity none|compact


The option none (default) does not bind OpenMP threads to particular thread contexts. The option compact binds the each OpenMP thread n+1 to a free thread context as close as possible to OpenMP thread n. Binding OpenMP threads may improve the speed in some cases, because switching threads could take some time.

Query GPU acceleration status


huOpt gpu

?-memory int? ?-cores int? ?-clockRate int? -allocMem int? ?-query available | availDeviceVector | device | devices | deviceVector | enabled | installed | license | max | memUsage | memUsageGlobal | names | relSpeed | required | switchable (available)?.........Query GPU parameter values


?-memory value (-1)?.........What is the amount of VRAM installed on the device with the given 0-based index?

?-cores value (-1)?.........What is the amount of CUDA cores on the device with the given 0-based index?

?-clockRate value (-1)?.........What is the CUDA core clock speed on the device with the given 0-based index?

?-query available?.........Is the GPU system as a whole available? (Cuda-capable cards present with sufficient license)

?-query availDeviceVector?.........Which devices meet the criteria such that they can potentially be used?

?-query device?.........What is the 0-based index of the current default device?

?-query devices?.........How many devices are there in total?

?-query deviceVector?.........Which devices are currently marked as "enabled" / participating in multi-GPU operations?

?-query enabled?.........Is the GPU system as a whole enabled? (GPU operations are possible or everything runs on the CPU)

?-query installed?.........What is the installed Cuda version? (reports 9020 for Cuda 9.2)

?-query license?.........Is there a sufficient license to use the (current default) GPU?

?-query max?.........How many GPU devices can be used/enabled simultaneously (the max. number of 1s in the deviceVector)

?-query memUsage?.........What is the current Huygens image memory/VRAM use on the current default device?

?-query memUsageGlobal?.........What is the total memory use of all processes on the current default device?

?-query names?.........What are the names of the GPU devices as reported by CUDA?

?-query relSpeed?.........What is the Huygens estimate of the relative speed of the current default GPU vs CPU for certain operations?

?-query required?.........What is the minimum required CUDA version? (compare against "installed")

?-query device?.........What is the 0-based index of the current default device?

?-query switchable?.........Is it currently possible to switch the GPU device configuration (no running operations)?


The query option with its sub-options gives information on either the GPU system as a whole or on the currently selected default device. The other options retrieve information about any Cuda-capable GPU in the system reported in the list of devices, without switching which device is the default device. If the given requested number for the memory, cores or clockRate options is -1 (which is the default value) then the results are reported for the current default GPU device.

Set GPU acceleration options


huOpt gpuSet

?-enabled 0 | 1 (0)?.........GPU acceleration enabled

?-device value (0)?.........Device to use

?-deviceVector value?.........String or list containing 0s, 1s and spaces, indicating which devices to use in multi-GPU operations.

?-ignoreRelSpeed 0 | 1 (0)?.........Ignore GPU relative speed


The argument to the deviceVector option shoud be a string containing only '0', '1' and space characters, where the total number of 0s and 1s together should be equal to the result of the "huOpt gpu -query devices" command. With the inclusion of spaces, it can be a list which has the number of devices as length. The order is the same as the order reported by "huOpt gpu -query names". At most the result of "huOpt gpu -query max" 1s may be specified. Switching the default device to use is only possible to a new device which is in the list of enabled devices. Toggling the GPU system enabled/disabled setting and changing the set of enabled devices (deviceVector) influence each other: when all devices are disabled, the GPU system will also be disabled. Conversely, if the GPU system is being enabled while all devices are disabled, that will have the effect of automatically enabling at least one device.

Set advice maximum memory usage


huOpt setmem

?-max value (0)?.........Advice maximal Mbytes used

?-force?.........Override system limits


Example:

huOpt setmem -max 500

Set the amount of RAM the Huygens Compute Engine can count on to be available for deconvolution tasks. The deconvolution functions will try to adapt to the RAM limit by processing the data in a brick-wise fashion, and limiting the accuracy of the output result. It remains possible to attempt to allocate more memory by for instance creating a new image.

Returns: the new amount of RAM in Mbytes. This may be less than the specified amount due to hard system limitations. The -force option overrides this behavior.

Get maximum memory usage


huOpt getmem


Returns a number that indicates the maximum usable memory during processing. On 32 bit platforms, notably Windows, this may be less than the installed system RAM

Get maximum available free memory


huOpt getMaxFreeMem


Return the RAM size minus the amount already used for images. This is the amount of RAM which can maximally be obtained from the system, though at the cost of other active applications.

Return pointer size of the Huygens binary (32 or 64)


huOpt getHuygensPtrSize


Return the pointer size use to address memory by the processor, either 64 or 32.

Get free swap space (Mb)


huOpt getFreeSwap


Returns the amount of free system swap space in MByte.

Get allocated memory size (Mb)


huOpt getAllocMem


Return the amount of memory used for images in MBytes and relative to the amount of system RAM.

Get the Huygens system path


huOpt getHuPath

?-dir package | base | images (package)?.........Directory


Returns the path where the package is installed (default, -dir package), the path of the base directory, or the path of the demo images directory. The base directory is shared between all packages in the Huygens Suite of products. On Unix systems it is /usr/local/svi, on Windows systems it is Program Files/SVI. On Mac OS X it depends on the installation. The package directory is a usually subdirectory of the base directory, but can also be the base directory. The demo images directory Images is a subdirectory of the base directory.


Get the temporary system path


huOpt getTmpPath


Returns the path of a temporary directory on your system. On Unix systems it is probably /tmp/, on Windows systems it is C:/Documents and Settings/user/Local Settings/Temp. On Mac OS X it depends on the installation.


Get the compilation date


huOpt getCompileDate


This command returns the date when the software was build.


Get the system id number


huOpt getSysId


This command returns the computer's system ID. On SGI systems this is the same as the number returned by sysinfo -s. The Help -> Product Information window in Huygens Professional and Help -> About window in Huygens Essential also show this number.

Get the format info of all imagetypes


huOpt getFormatInfo

?-type all | czi | hdf5 | ics | ims | ipl | ipm | ipmtiff | leica | lif | lof | lsm | mrc | nd2 | oif | ome | pic | r3d | seq | sis | stk | tiff | vsi | xlif | zvi (all)?.........Image type selection


This command returns for the specified image-type or (if type is not specified) for all image-types the confidence level2 for each parameter in the metadata. Three types of confidence levels are used:
  • Reported: the parameter has been reported by the microscope manufacturer.
  • Estimated: the parameter might have some uncertainty such as a missing physical unit.
  • Default: the parameter was missing in the metadata and has been assigned a default value.

This information is given as a single line in subsequent option-value pairs. For examples on how to work with parameters in Tcl option-value lists see setp.

Compute Nyquist rate from parameter list


huOpt nyqExpl


Returns: Nyquist rate in X,Y,Z from parameters.

Set debugging levels


huOpt debug

?-level value (0)?.........Debugging level

?-get?.........Get global or module debug level


Set the debug level of a particular module within the compute engine. gp stands for `general purpose'. Use the -get flag to read the current debug level of a module.

Example:

huOpt debug -module io -level 1

This sets the debug level of the file I/O functions to 1.


huPrint report text


Write a message to the Task Report pane in Huyens Professional or Huygens Scripting. This command always prints a newline after the text. This command is very useful in case the software was not started from a command line.

huOpt report is a deprecated command that previously served the same purpose. It will remain to be available for backward compatibility with existing scripts.


huPrint info text


Write a message to stdout, which is the console the program was started from. In case a console is missing, use huPrint report instead. This command always prints a newline after the text.

huOpt printInfo is a deprecated command that previously served the same purpose. It will remain to be available for backward compatibility with existing scripts.


huPrint debug text


Write a message to stdout, but the message is only printed when the software runs in http://www.svi.nl/debugMode. In case a console is missing, use huPrint report instead. Debug messages are also written to the log file as explained in http://www.svi.nl/ExecutionLog. This command always prints a newline after the text.

huOpt printDebug is a deprecated command that previously served the same purpose. It will remain to be available for backward compatibility with existing scripts.


huPrint error text


Write an error message to stdout, which is more distinctive than other messages. Error messages are also written to the log file as explained in http://www.svi.nl/ExecutionLog.

huOpt printError is a deprecated command that previously served the same purpose. It will remain to be available for backward compatibility with existing scripts.


Set parameters


source setp

?-def?.........Defaulting

?-na value (1.3)?.........Numerical aperture

?-objQuality poor | mediocre | fair | normal | good | perfect (perfect)?.........Quality of objective

?-exBeamFill value (2.0)?.........Excitation beam overfill factor

?-ri value (1.44)?.........Medium refractive index

?-ril value (1.515)?.........Lens refractive index

?-chan value (-1)?.........Channel number

?-ex value (488)?.........Excitation wavel. (nm)

?-em value (520)?.........Emission wavel. (nm)

?-pcnt value (1)?.........Excitation photon count

?-ppu value (1)?.........Photons Per Unit

?-baseline value (0)?.........Image baseline

?-lineAvgCnt value (1)?.........Line averaging count

?-s vector (0.05 0.05 0.15 1)?.........Sample distances (um)

?-dx value (0.05)?.........Sample distance X (um)

?-dy value (0.05)?.........Sample distance Y (um)

?-dz value (0.15)?.........Sample distance Z (um)

?-dt value (1)?.........Sample distance T (s)

?-offX value (0.0)?.........X offset (um)

?-offY value (0.0)?.........Y offset (um)

?-offZ value (0.0)?.........Z offset (um)

?-offT value (0.0)?.........T offset (s)

?-iFacePrim value (0.0)?.........Z-position primary interface (coverslip position, see below)

?-iFaceScnd value (0.0)?.........Z-position second interface (slide position)

?-imagingDir upward | downward (upward)?.........Imaging direction

?-pr value (250)?.........Pinhole radius (nm)

?-ps value (2.53)?.........Pinhole spacing (micron)

?-mag value (60)?.........Detector magnification

?-micr confocal | widefield | nipkow | 4Pi | STED | SI | SPIM | brightfield | generic (confocal)?.........Microscope type

?-stedMode vortexPulsed | vortexCW | vortexCWGated (vortexCW)?.........STED mode

?-stedLambda value (676)?......... STED inhibition wavelength (nm)

?-stedSatFact value (30)?......... STED saturation factor

?-stedImmunity value (10)?......... Percentage of dye not getting depleted (%)

?-sted3D value (0)?......... Percentage of STED 3D (%)

?-spimExc gaussian | gaussianMuVi | scanning | scanningAnnulus | cylinder?.........SPIM excitation mode

?-spimGaussWidth value (4.0)?.........Width of Gaussian plane

?-spimNA value (0.03?.........SPIM plane NA

?-spimFill value (0.5)?.........SPIM excitation fill factor

?-spimCenterOff value (0)?.........SPIM plane offset w.r.t center (micron)

?-spimFocusOff value (0)?.........SPIM Z-plane offset w.r.t focus (micron)

?-spimDir value (0)?.........SPIM plane direction (degrees)

?-state invalid | default | estimated | reported | verified (estimated)?.........Parameter state

?-descr string?.........Channel description

?-title string?.........Image title

?-v?.........Verbose


 The -def option controls whether or not default substitution will be used.

In this option is present, parameters missing from the command line will be set to factory defaults, and the corresponding image parameters will be updated. If this option is absent (off) only those parameters specified by arguments on the command line will be updated in the source image imageName.

To display an image's current parameters use the setp method with only the -v option.

With the -chan option parameters which are specific to a channel can be set. For instance, set the excitation wavelength in channel with index 0 in a three-channel image (named a3) to 567 nm with:

a3 setp -chan 0 -ex 567

To set all channels to the same wavelength use '-1' as value to -chan:

image setp -chan -1 -ex 567

With the -tclReturn option specified the parameters are returned as a line (list) consisting of option-value pairs. Microscopic parameters, i.e. non-geometrical parameters, are in the form of lists. Each item in the list corresponds with a channel in the image. For convenience, the number of channels is provided by the field chanCnt.

In -tclReturn mode the image is left unchanged; an image reconfigure event will therefore not be published. An image reconfigure event is always published when the -tclReturn option is not given.

The format of the option-value pairs is as follows:

=>sampleSizes {xSize ySize zSize tSize }
iFacePrim CoverslipPosition
iFaceScnd SlidePosition
chanCnt NumberOfChannels
mType {MicroscopeTypeList}
mMode {NotUsedList}
NA {NumericalApertureList}
imagingDir {ImagingDirectionList}
objQuality {ObjectiveQualityList}
RIMedia {RefractiveIndexMediumList}
RILens {RefractiveIndexLensList}
pinholeSpacing {PinholeSpacingList}
pinhole {pinholeRadiusList }
lambdaEx {excitationWavelengthList }
lambdaEm {emissionWavelengthList }
photonCnt {excitationPhotonList }
exBeamFill {overfillFactorList }


In addition to the sample sizes being returned in the 'sampleSizes' field, units micron,s, for convenience the following are also returned:

=>dx xSize
dy ySize
dz zSize
dt tSize


The confidence state of each parameter is also reported. For each parameter there is a corresponding parstate, field followed by a state or in the case of a channel parameter a list of states. The reported state can be one of: invalid, default, estimated, reported, verified.

  • Invalid: indicates an error condition.
  • Default: no better guess could be made than to set the parameter to a build-in fallback value.
  • Estimated: the parameter could not be established with full confidence, but a reasonable estimate could be made. *Reported: the parameter was read from a microscopic file and can be considered reliable.
  • Verified: The parameter was verified by a user.

Handling returned parameters

The different microscopic parameters can be conveniently extracted from the list using the array set arrayName list Tcl command. This command initializes the array from a list that alternates between an index (an item label, not necessarily a number) and a value, as is the case in the option-value paired output list.

You should not use the name of the image as array variable because it is already registered as a global command and can not be an array variable name at the same time.

Parameter details


Sampling


To set a single sampling density to a particular state, use the -dx ... -dt options instead of the -s option.

Sampling densities mey either be set as a vector argument to the -s option, or individually using the -dx ... -dt options. Fields in the -s vector of override corresponding -dx ... -dt options. When the -def option is in effect, any field not specified in either the -s vector argument or as value to the -dx ... -dt options are set to defaults.

Pinhole radius


Pinhole radius and spacing are given 'backprojected'. See the Huygens Essential User Guide or the SVI-wiki (http://www.svi.nl/PinholeRadius) to properly calculate them.

Coverslip position


The coverslip position is the position in micron of the coverslip relative to the origin of the image.

Setp example

set imagename [img open /CDROM/examples/foo.ics]
array set fooArray [$imagename setp -tclReturn]
set fooArray(RIMedia)


Returns: the value of the refractive index of the medium as used in the image foo.


1. http://www.svi.nl/PinholeRadius
2. For more information see SVI Wiki http://www.svi.nl/ConfidenceLevels