_ExportImagesToTIFF, _ND_BatchExport, _ND_BioStationNex_Import, _ND_Convert, _ND_CreateExperiment, _ND_CreateJsonSequence, _ND_CreateMultipointSet, _ND_CreateNDAdvanced, _ND_Crop, _ND_Dicom_Import, _ND_ExchangeDimensions, _ND_Export, _ND_ExportToTIFF, _ND_SplitMultipoints, _OpenSequence, ExportImagesToTIFF, GetSuggestedZStep, ModifyZStep, ND_BioStationNex_Import, ND_ConvertAddWaveLength, ND_ConvertAddWaveLength2, ND_ConvertAllocXYCoors, ND_ConvertFinish, ND_ConvertFreeXYCoors, ND_ConvertInit, ND_ConvertSequenceToSpectral, ND_ConvertSetMicSettings, ND_ConvertSetTimeLoop, ND_ConvertSetXYLoop, ND_ConvertSetZStackLoop, ND_CropAllocMask, ND_CropFinish, ND_CropFreeMask, ND_CropInit, ND_CropSetBinary, ND_CropSetChannelCropXYZ, ND_CropSetChannelCropXYZArb, ND_CropSetProjections, ND_CropSpectLoop, ND_CropTimeLoop, ND_CropXYLoop, ND_CropZStackLoop, ND_DefineExperiment, ND_ExchangeDimensions, ND_Export, ND_ExportToTIFF, ND_FinishExperiment, ND_GetCurrentPosIndexes, ND_GetExperimentLoopSize, ND_GetPictureMetadata, ND_GetPositionInExperiment, ND_GetRecordingDataDouble, ND_GetRecordingDataInt, ND_GetRecordingDataString, ND_GetSelectionRange, ND_InsertEvent, ND_LoadExperiment, ND_LoadMultipointSet, ND_LoadNDAdvanced, ND_LoadSequence, ND_MergeFiles, ND_MoveExperimentBackward, ND_MoveExperimentForward, ND_MoveInExperiment, ND_MoveInExperimentSeq, ND_MoveRangeBackward, ND_MoveRangeForward, ND_MoveToNextEvent, ND_MoveToPreviousEvent, ND_PauseExperiment, ND_RecordedDataDefault, ND_RedefineAbsZ, ND_RemoveEvent, ND_RemoveExperiment, ND_RemoveRecordingData, ND_ResumeExperiment, ND_ReuseExperiment, ND_ReuseZIntensityCorr, ND_RunExperiment, ND_RunExperimentNoProgressBar, ND_RunExperimentWithZIntensityCorrection, ND_RunMultipointSet, ND_RunNDAdvanced, ND_SaveExperiment, ND_SetRecordingDataDouble, ND_SetRecordingDataInt, ND_SetRecordingDataString, ND_SetSelectionMode, ND_SetSelectionRange, ND_SplitMultipoints, OpenStackedTiff
Interactive command to this function: File > Save/Export to TIFF Files
Description
ExportImagesToTIFF( intExportToTiffImageSource
, char *ND_SrcFileNames
, charExportToTiffPath
, charExportToTiffPreset
);
Exports selected files into TIFF. The ND_SrcFileNames parameter defining the file names of images that will be exported to TIFF is used only if the ExportToTiffImageSource parameter is set to 2.
Parameters
Description
GetSuggestedZStep();
This function returns optimal Z step size in micrometers. It is the same Suggested Z Step value which is used within the Capture Z-Series (or Define/Run Experiment) control window.
Description
ModifyZStep(
double ND_StepDbl
);
Modifies Z-Step value of the current ND document.
Interactive command to this function: File > Import/Export > Create ND File from BioStation NEX
Description
ND_BioStationNex_Import(
char *Filename
);
Imports the Biostation NEX File.
See Also
Description
ND_ConvertAddWaveLength( intND_ConvertHandle
, intColor
, char *WaveLengthName
, char *OptConfigName
);
This function adds new wavelength specification parameters for WaveLength loop which will be used in ND Convert process.
Parameters
Color
The RGB color as a 32bit integer. Use the RGB function to get the value.
See Also
Description
ND_ConvertAddWaveLength2( int64ND_ConvertHandle
, char *WaveLengthName
, char *ModalityFlags
, intExcitationNm
, intEmissionNm
, intColor
);
Used for alternative setting of wavelength without OC, when having TIFF files.
Parameters
ModalityFlags
Modality flags is a combination (separated ','):
“fluorescence”
“bright field”
“phaseContrast”
“diContrast”
“camera”
“laserScanConfocal”
“spinningDiskConfocal”
“sweptFieldConfocalSlit”
“sweptFieldConfocalPinhole”
“dsdConfocal”
“SIM”
“iSIM”
“RCM”
“VCS”
“sora”
“liveSR”
“multiphoton”
“TIRF”
“pmt”
“spectral”
“vaasIF”
“vaasNF”
“transmitDetector”
“nonDescannedDetector”
“virtualFilter”
“gaasp”
“remainder”
“aux”
“custom”
Color
The RGB color as a 32bit integer. Use the RGB function to get the value.
See Also
Description
ND_ConvertAllocXYCoors(
int Count
);
This function allocates memory (Count parameter) for coordinates which can be passed to the ND_ConvertSetXYLoop function. When the memory is no longer needed it should be freed by calling the ND_ConvertFreeXYCoors function.
Return Values
See Also
ND_ConvertFreeXYCoors
Description
ND_ConvertFinish( intND_ConvertHandle
, char *DestFile
);
This function finally performs the ND Convert process previously defined by set of NDConvert functions. DesFile parameter represents the output file name with its full path.
Parameters
double *pXYCoords; int NDConvertHandle; pXYCoords = ND_ConvertAllocXYCoors(4); // Four values are used (X1, Y1, X2, Y2) NDConvertHandle = ND_ConvertInit("C:\images\convert\serie.tif",-1,1,0,2); pXYCoords[0] = 1000; // X1 pXYCoords[1] = 1500; // Y1 pXYCoords[2] = 2000; // X2 pXYCoords[3] = 2500; // Y2 ND_ConvertSetXYLoop(NDConvertHandle, 2, 0, pXYCoords); ND_ConvertSetZStackLoop(NDConvertHandle, 3, 10); ND_ConvertAddWaveLength(NDConvertHandle,RGB(255, 0, 0),"Red",""); ND_ConvertAddWaveLength(NDConvertHandle,RGB(0, 255, 0),"Green",""); ND_ConvertAddWaveLength(NDConvertHandle,RGB(0, 0, 255),"Blue",""); ND_ConvertFinish(NDConvertHandle, "c:\result.nd2"); ND_ConvertFreeXYCoors(pXYCoords);
Note
If product of all LoopCnt parameters of the ND_ConvertSet... functions is greater than the number of images found in the specified directory, no conversion will be performed.
See Also
ND_ConvertInit, ND_ConvertAllocXYCoors, ND_ConvertFreeXYCoors, ND_ConvertAddWaveLength, ND_ConvertSetXYLoop, ND_ConvertSetZStackLoop
Description
ND_ConvertFreeXYCoors(
double *XYCoors
);
This function should be used to free memory previously allocated by ND_ConvertAllocXYCoors.
See Also
ND_ConvertAllocXYCoors
Description
int64 ND_ConvertInit( char *Filename
, intTimeIdx
, intZStackIdx
, intXYIdx
, intWaveLengthIdx
);
This function initializes the process of converting a file sequence to a single ND document. Filename specifies the first file of the input file sequence.
Parameters
Return Values
double *pXYCoords; int64 NDConvertHandle; pXYCoords = ND_ConvertAllocXYCoors(4); // Four values are used (X1, Y1, X2, Y2) NDConvertHandle = ND_ConvertInit("C:\images\convert\serie.tif",-1,1,0,2); pXYCoords[0] = 1000; // X1 pXYCoords[1] = 1500; // Y1 pXYCoords[2] = 2000; // X2 pXYCoords[3] = 2500; // Y2 ND_ConvertSetXYLoop(NDConvertHandle, 2, 0, pXYCoords); ND_ConvertSetZStackLoop(NDConvertHandle, 3, 10); ND_ConvertAddWaveLength(NDConvertHandle,RGB(255, 0, 0),"Red",""); ND_ConvertAddWaveLength(NDConvertHandle,RGB(0, 255, 0),"Green",""); ND_ConvertAddWaveLength(NDConvertHandle,RGB(0, 0, 255),"Blue",""); ND_ConvertFinish(NDConvertHandle, "c:\result.nd2"); ND_ConvertFreeXYCoors(pXYCoords);
See Also
ND_ConvertFinish, ND_ConvertAllocXYCoors, ND_ConvertFreeXYCoors, ND_ConvertAddWaveLength, ND_ConvertSetXYLoop, ND_ConvertSetZStackLoop
Description
ND_ConvertSequenceToSpectral( intND_LambdaCount
, double *ND_LambdaWavelength
, double *ND_LambdaBandwidth
, char *ND_LambdaNames
);
This function takes the current grayscale + timelapse ND document and converts the given number of frames in this document into another no delay timelapse, or a single image with a given number of spectral channels.
Parameters
int main() { double dWavelength[4]; double dBandwidth[4]; char sChannel[64]; int iLambdaCount; iLambdaCount = 4; dWavelength[0] = 450; dWavelength[1] = 500; dWavelength[2] = 600; dWavelength[3] = 700; dBandwidth[0] = 10; dBandwidth[1] = 15; dBandwidth[2] = 20; dBandwidth[3] = 25; strcpy(sChannel, "a00"); strcpy(sChannel+16, "a01"); strcpy(sChannel+32, "a02"); strcpy(sChannel+48, "a03"); ND_ConvertSequenceToSpectral(iLambdaCount, dWavelength, dBandwidth, sChannel); }
Description
ND_ConvertSetMicSettings( int64ND_ConvertHandle
, doubleND_Calibration
, doubleND_ObjMagnification
, doubleND_ObjNumericalAperture
, doubleND_ProjectiveMagnification
, doubleND_ZoomMagnification
, doubleND_ImmersionRefraciveIndex
, doubleND_PinholeDiameterUm
);
Sets important metadata, especially those used for Deconvolution.
Parameters
Description
ND_ConvertSetTimeLoop( intND_ConvertHandle
, intLoopCnt
, intPeriod
);
This function sets parameters for the Time loop which will be used in the ND Convert process.
Description
ND_ConvertSetXYLoop( intND_ConvertHandle
, intLoopCnt
, intUseZCoord
, double *XYCoors
);
This function sets parameters for the XY loop which will be used in the ND Convert process.
Description
ND_ConvertSetZStackLoop( intND_ConvertHandle
, intLoopCnt
, doubleStep
);
This function sets parameters for ZStack loop which will be used in the ND Convert process.
Description
ND_CropAllocMask(
int ValuesCnt
);
This function allocates memory for mask values which can be passed to the ND_CropSpectLoop function. When the memory is no longer needed it should be freed by calling the ND_CropFreeMask function.
Description
ND_CropFinish(
int64 ND_CropHandle
);
This function finally performs the NDCrop process previously defined by set of NDCrop functions.
See Also
ND_CropInit
Description
ND_CropFreeMask(
char8 *MaskValues
);
This function should be used to free memory previously allocated by the ND_CropAllocMask function.
Parameters
See Also
ND_CropAllocMask
Description
ND_CropInit( intDestFile
, intLeft
, intTop
, intWidth
, intHeight
);
This function initializes process of cropping ND document by setting its basic parameters.
Parameters
Description
ND_CropSetBinary( int64ND_CropHandle
, intBinLayerID
, char *BinaryConnected
, intBinLayerColor
, intBinLayerColorMode
, intChannel ID
);
Defines cropping parameters of the binary layer before the cropping function is called.
Parameters
Description
ND_CropSetChannelCropXYZ( int64ND_CropHandle
, intChannel
, doubleXMin
, doubleXMax
, doubleYMin
, doubleYMax
, doubleZMin
, doubleZMax
);
This function crops the selected channel based on XYZ dimensions.
Description
ND_CropSetChannelCropXYZArb( int64ND_CropHandle
, intChannel
, intFactorA
, intFactorB
, intFactorC
, intFactorD
);
Arbitrary crop of the channel.
Description
ND_CropSetProjections( int64ND_CropHandle
, intProjectionWanted
, intProjectionsAvailable
, intZIndex
);
Projections cropping parameter setting.
Description
ND_CropSpectLoop( int64ND_CropHandle
, char8 *MaskValues
, intValuesCount
);
This function defines which Wavelengths in Spectral loop should be cropped in NDCrop.
Parameters
See Also
ND_CropInit
Description
ND_CropTimeLoop( int64ND_CropHandle
, intFirst
, intLast
, intStep
);
This functions sets parameters of the NDCrop for the Time loop.
Parameters
See Also
ND_CropInit
Description
ND_CropXYLoop( int64ND_CropHandle
, char8 *MaskValues
, intValuesCount
);
This function sets which XY coordinates in Multipoint loop should be cropped in NDCrop.
Parameters
See Also
ND_CropInit
Description
ND_CropZStackLoop( int64ND_CropHandle
, intFirst
, intLast
, intStep
);
This functions sets parameters of the NDCrop for the ZStack loop.
Parameters
See Also
ND_CropInit
Description
ND_DefineExperiment( boolND_TExp
, boolND_XYExp
, boolND_ZExp
, boolND_LExp
, boolND_NormalZOrder
, char *Filename
, char *Prefix
, intND_FileType
, boolND_UseTIFF
, boolND_UsePFS
, boolND_EnableTMeas
);
This function defines parameters for ND experiment.
Parameters
Note
You can set capturing to *.tif series by setting the ND_UseTIFF parameter to 1, and capturing to a single *.nd2 file by setting it to 0. Other parameters can be omitted by setting them to -1 as in the following example: ND_DefineExperiment(-1,-1,-1,-1,-1,"","",-1,1,-1,-1); // sets the TIFF mode ND_DefineExperiment(-1,-1,-1,-1,-1,"","",-1,0,-1,-1); // sets the ND2 mode There is a naming convention for the *.tif series. The format of the naming convention is: prefix[t][index1][xy][index2][z][index3][c][index4].tif t, xy, z, c with appropriate index will be omitted if the dimension is not acquired. Indexes are integer values counted from 1. For example, time loop with z-stack in two channels with prefix "nd" will produce: ndt1z1c1.tif ndt1z1c2.tif ndt1z2c1.tif ndt1z2c2.tif ndt1z3c1.tif ndt1z3c2.tif
Interactive command to this function: Image > ND Processing > Exchange Dimensions
Description
ND_ExchangeDimensions( intND_TimeCount
, intStgArrayCount
, intND_ZSeriesCount
, doubleND_TimeInterval
, double *StgArrayX
, double *StgArrayY
, double *StgArrayZ
, char *StgArrayNames
, doubleZSeriesStep
);
Changes the dimensions in the current ND document.
Parameters
ND_ZSeriesCount
Defines number of Z slices. If equals zero, it is ignored ; for positive values, the range of experiment is changed according to the step size.
StgArrayX
Array of minimum StgArrayCount double values that represents X coordinates (in microns) of points in ND experiment. If this parameter equals NULL (0), all X values are set to zero.
StgArrayY
Array of minimum StgArrayCount double values that represents Y coordinates (in microns) of points in ND experiment. If this parameter equals NULL (0), all Y values are set to zero.
StgArrayZ
Array of minimum StgArrayCount double values that represents Z coordinates of points in ND experiment. If the current ND experiment contains multipoint loop without Z position this parameter will be ignored.
Interactive command to this function: File > Import/Export > Export ND Document
Description
ND_Export( char *Filename
, char *Dest_Directory
, char *Prefix
, char *FileExtension
, intChannelExportType
, intApplyLuts
, intInsertOverlay
);
This function performs conversion from an ND document to a sequence of images.
Parameters
Interactive command to this function: File > Import/Export > ND Export to TIFF
Description
ND_ExportToTIFF( char *Filename
, char *Dest_Directory
, char *Prefix
, intChannelExportType
, intApplyLuts
, char *uiSaveAsMCH
, char *iMultiPageMask
);
This function performs conversion from an ND document to a TIFF file.
Parameters
ApplyLuts
Use a non-zero value if LUTs should be applied to the output images. This option is accessible only with the Merge channels to RGB image option.
uiSaveAsMCH
Defines how channels are saved into the TIFF file respecting the TIFF file properties and compatibility.
iMultiPageMask
Defines the Multi page mask - a way dimensions of multi-dimensional nd2 files are treated during the export into a TIFF file. Select which dimension(s) will form the basis of the Multi-page TIFF file. For example if you choose t+z, all exported TIFF files will have both time and Z dimensions. Dimension combo boxes are used to sort the remaining dimensions to define the file naming of all exported images. The number of exported multi-page TIFF files can be calculated as multiplication of all dimensions except those selected in the Multi-page combo box.
Example 22.
Our nd2 file has 10 timelapse frames, 3 multi-points and 5 Z slices. We want to create multi-page TIFF files having only a Z stack dimension. Thus we select z from the Multi-page combo box. To define the file naming we can adjust the dimension order in the Dimension combo box. After clicking , the remaining dimensions (t and XY) are automatically incorporated into our 30 (10x3) new Z-stack TIFF files.
Description
ND_FinishExperiment();
This function aborts the running ND experiment at the end of the currently running time loop. The ND file will be created from the frames captured so far.
Description
ND_GetCurrentPosIndexes( int *pTIndex
, int *pXYIndex
, int *pZIndex
);
This function returns the position of a selected image frame within the current ND2 document.
Description
ND_GetExperimentLoopSize( intND_ExperimentType
, intND_ExperimentByType
);
This function retrieves the size or position of specified experiment loop from the open document.
Parameters
Description
ND_GetPictureMetadata( intND_PosAbsolute
, void *ND_Metadata
, dwordND_MetadataFlags
);
This function retrieves desired metadata from specified picture frame.
Parameters
ND_MetadataFlags
Defines Metadata type and can be one of following:
Time (double) | |
X pos (double) | |
Y pos (double) | |
Row (unsigned int) | |
Column (unsigned int) | |
Is Z absolute (int) | |
Z pos (double) | |
Angle (double) | |
Temperature (double) | |
Calibration (double) | |
Aspect (double) | |
Is calibrated (int) | |
Objective name (char*) | |
Objective magnification (double) | |
Objective NA (double) | |
Refract index1 (double) | |
Refract index2 (double) | |
Pinhole radius (double) | |
Zoom (double) | |
Projective magnification (double) | |
Custom data (char*) |
Description
ND_GetPositionInExperiment( intTIndex
, intXYIndex
, intZIndex
, intND_PosAbsolute
, double *XPos
, double *YPos
, double *ZPos
, double *TPos
);
This function retrieves values of Time and XYZ positions in the specified picture frame.
Parameters
Description
ND_GetRecordingDataDouble( char *RecordID
, intSeqIndex
, char *RecordDescription
, double *RecordDoubleP
, char *RecordUnit
);
This function retrieves information about additionally set floating point number Recorded data during ND Acquisition.
Parameters
RecordID
This parameter is a string identifier of Recorded data inserted in previous call of ND_SetRecordingDataDouble function or one of the predefined values described bellow.
X coordinate of the current frame | |
Y coordinate of the current frame | |
Z coordinate of the current frame | |
Z coordinate of the first Z device in case of multiple Z devices | |
Z coordinate of the second Z device in case of multiple Z devices | |
Temperature of a heatstage | |
Voltage of a device number n |
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
RecordDescription
Short text description of Recorded data can be retrieved by this parameter. Minimum length of the string buffer is 256 characters.
Description
ND_GetRecordingDataInt( char *RecordID
, intSeqIndex
, char *RecordDescription
, int *RecordIntP
, char *RecordUnit
);
This function retrieves information about additionally set integer number Recorded data during ND Acquisition.
Parameters
RecordID
This parameter is a string identifier of Recorded data inserted in previous call of ND_SetRecordingDataInt function or one of the predefined values described bellow.
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
RecordDescription
Short text description of Recorded data can be retrieved by this parameter. Minimum length of the string buffer is 256 characters.
See Also
ND_GetRecordingDataDouble, ND_GetRecordingDataString
Description
ND_GetRecordingDataString( char *RecordID
, intSeqIndex
, char *RecordDescription
, char *RecordStringP
, char *RecordUnit
);
This function retrieves information about additionally set string Recorded data during ND Acquisition.
Parameters
RecordID
This parameter is a string identifier of Recorded data inserted in previous call of ND_SetRecordingDataString function.
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
RecordDescription
Short text description of Recorded data can be retrieved by this parameter. Minimum length of the string buffer is 256 characters.
Description
ND_GetSelectionRange( intLoopIndex
, int *NDSelection
, intNDSelectionSize
);
Returns the size of the selected loop. pFrames is an array of INTs of the iFrameCount size. When the function is called, it is filled with zeros or ones depending on the ND selection.
Example:
int selection[10]; int loopSize; char msg[256]; loopSize = ND_GetSelectionRange(0, selection, 10); sprintf(msg, "Loop %i - loopSize: %i, selection: %i, %i, %i, %i, %i, %i, %i, %i, %i, %i, "0, loopSize, selection[0], selection[1], selection[2], selection [3], selection[4], selection[5], selection[6], selection[7], selection[8], selection[9]"); WaitText(0, msg); loopSize = ND_GetSelectionRange(1, selection, 10); sprintf(msg, "Loop %i - loopSize: %i, selection: %i, %i, %i, %i, %i, %i, %i, %i, %i, %i, "1, loopSize, selection[0], selection[1], selection[2], selection [3], selection[4], selection[5], selection[6], selection[7], selection[8], selection[9]"); WaitText(0, msg);
Description
int ND_InsertEvent( intEventType
, doubleEventTime
, charEventDescription
);
This function inserts user-defined event into the current ND document.
Parameters
Return Values
See Also
ND_RemoveEvent
Description
ND_LoadExperiment(
char *ND_ExperimentName
);
This function loads a previously saved experiment settings from registry.
Description
ND_LoadMultipointSet( char *ND_MultipointSetName
, char *ND_MultipointExpName
);
This function imports the multi-point set to the ND experiment.
Description
ND_LoadNDAdvanced(
char *ND_SequenceName
);
This function loads specified ND sequence.
Description
ND_LoadSequence(
char *ND_SequenceName
);
This function loads selected ND sequence.
Description
ND_MergeFiles( char *ND_SrcFileNames
, char *ND_Filename
, int *ND_Groups
, intND_MergeFlags
);
This function merges ND documents. The ND_SrcFileNames parameter defines the list of images which can be merged.
Parameters
Description
0 ND_MoveExperimentBackward(
int LoopIndex
);
This function displays the previous frame of the selected dimension of the current ND2 document. Use “-1” to select the dimension which has been moved as last.
Parameters
Description
0 ND_MoveExperimentForward(
int LoopIndex
);
This function displays the next frame of the selected dimension of the current ND2 document. Use “-1” to select the dimension which has been moved as last.
Parameters
Description
0 ND_MoveInExperiment( intND_ExperimentType
, intND_ExperimentPos
, intND_PosAbsolute
, intND_ExperimentByType
);
This function changes the currently displayed frame of the opened nd file.
Parameters
Description
ND_MoveInExperimentSeq(
int ND_ExperimentPos
);
This function displays a frame of the current ND document. The frame is specified by its absolute position (the frames are ordered as they were captured).
Description
int ND_MoveRangeBackward(
int LoopIndex
);
This function moves left a range of selected frames on the ND Navigation bar of the current ND Document.
Parameters
Return Values
See Also
ND_MoveRangeForward
Description
int ND_MoveRangeForward(
int LoopIndex
);
This function moves right a range of selected frames on the ND Navigation bar of the current ND Document.
Parameters
Return Values
See Also
ND_MoveRangeBackward
Description
ND_MoveToNextEvent();
Important frames in an ND experiment can be marked by events. This function displays the frame marked with the closest onward event.
Description
ND_MoveToPreviousEvent();
Important frames in an ND experiment can be marked by events. This function displays the frame marked with the closest backward event.
Description
ND_PauseExperiment();
This function pauses ND experiment. Run the ND_ResumeExperiment function to continue with the experiment.
Description
ND_RecordedDataDefault(
int ND_RecordedDataDefault
);
The function selects what hardware data to record during ND experiment acquisition.
Description
ND_RedefineAbsZ();
This function sets a new Z drive position to the current XY position during a Time+XY experiment. The Z drive will move to the redefined Z position during the next time phase.
Note
If the ND_RedefineAbsZAfterPFS is turned ON, this function is called after the autofocus or the PFS system detected a shift of the specimen compared to the previous time loop. This ensures that the specimen will not get out of the PFS/autofocus range during long-lasting experiments.
See Also
ND_RedefineAbsZAfterPFS
Description
ND_RemoveEvent(
int EventID
);
This function deletes an event from the ND Navigation bar of the current document.
Description
ND_RemoveExperiment(
char *ND_ExperimentName
);
This function removes a saved experiment from registry.
Description
ND_RemoveRecordingData(
char *RecordID
);
This function removes selected Recorded data.
Parameters
RecordID
Each Recorded data record is represented by a string identifier.
X coordinate of the current frame | |
Y coordinate of the current frame | |
Z coordinate of the current frame | |
Z coordinate of the first Z device in case of multiple Z devices | |
Z coordinate of the second Z device in case of multiple Z devices | |
Temperature of a heatstage | |
Voltage of a device number n |
This function runs the Reuse ND Setup command.
Description
ND_ReuseExperiment(
char *Filename
);
Sets the ND setup to match the settings of the specified ND image file. The *.tif and *.nd2 file formats are supported. This function is invoked on context menu in the Auto Capture Folder and Opened Images control windows and also on the button in the Image Properties dialog box.
See Also
ImageReuseCameraSettings
Description
ND_ReuseZIntensityCorr(
char *Filename
);
This function loads intensity correction settings from the specified image to the Z Intensity Correction control panel.
If the parameter is NULL, the function tries to load settings from the current (active) document.
Description
ND_RunExperiment(
bool ND_OpenExperiment
);
This function starts the current ND experiment.
Description
ND_RunExperimentNoProgressBar(
bool ND_OpenExperiment
);
This function starts the current ND experiment without displaying the ND Experiment Acquisition Status window.
Description
ND_RunExperimentWithZIntensityCorrection(
bool ND_OpenExperiment
);
This function starts the current ND experiment with Z Intensity Correction.
Description
ND_RunMultipointSet();
This function runs the previously defined multi-point experiment. To define the experiment run the _ND_CreateMultipointSet function.
See Also
_ND_CreateMultipointSet
Description
ND_RunNDAdvanced();
This function runs advanced ND documents acquisition.
See Also
_ND_CreateNDAdvanced
Description
ND_SaveExperiment(
char *ND_ExperimentName
);
This function saves the current experiment settings to registry under a specified name.
Description
ND_SetRecordingDataDouble( char *RecordID
, intSeqIndex
, char *RecordDescription
, doubleRecordDoubleP
, char *RecordUnit
);
This function sets additional double-precession floating point number Recorded data during ND Acquisition.
Parameters
RecordID
Each Recorded data record is represented by a string identifier. If you set values for multiple frames of the same record, you should enter the same identifier on each call.
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
Description
ND_SetRecordingDataInt( char *RecordID
, intSeqIndex
, char *RecordDescription
, intRecordIntP
, char *RecordUnit
);
This function sets additional integer number Recorded data during ND Acquisition.
Parameters
RecordID
Each Recorded data record is represented by a string identifier. If you set values for multiple frames of the same record, you should enter the same identifier on each call.
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
// this macro can be executed during "Execute after capture" int t, xy, z; ND_GetCurrentPosIndexes(&t, &xy, &z); ND_SetRecordingDataInt("MyTime", -1, "Time", t+1, "index");
See Also
ND_SetRecordingDataDouble, ND_SetRecordingDataString
Description
ND_SetRecordingDataString( char *RecordID
, intSeqIndex
, char *RecordDescription
, char *RecordStringP
, char *RecordUnit
);
This function sets additional string Recorded data during ND Acquisition.
Parameters
RecordID
Each Recorded data record is represented by a string identifier. If you set values for multiple frames of the same record, you should enter the same identifier on each call.
SeqIndex
This parameter sets a sequence index of the recorded frame. If the SeqIndex equals -1, index of the currently acquired frame is assigned to this value. Use -2 for a global value.
RecordDescription
Short text description of Recorded data should be specified by this parameter. The parameter can be specified only once for each RecordID, next calls with the same RecordID can set this parameter to NULL (0).
Description
ND_SetSelectionMode(
int SelectionMode
);
This function allows you to change a selection mode of the ND Navigation control of the current image.
Description
ND_SetSelectionRange( intLoopIndex
, intRangeFrom
, intRangeTo
, intRangeSelect
);
This function enables you to specify selection of frames of the current ND image. Other frames than range specified by parameters will not be affected (selected/de-selected).
Parameters
Interactive command to this function: File > Import/Export > Split Multipoints
Description
ND_SplitMultipoints( char *Filename
, char *Dest_Directory
, char *Prefix
, intND_UseTIFF
);
This function performs splitting of an ND Image with the multi-point dimension into several ND Images. Each resulting ND Image represents one point in the multi-point loop.
If the Filename parameter is NULL the function will be applied to the active image.
Parameters
Note
Resulting images will be stored into the Dest_Directory directory. Filenames of these images will have the following format : Prefix(index in multipoint loop).nd2.
Description
OpenStackedTiff( char *Image
, intLoopType
, doubleLoopParam
, intSaveModified
);
This function can open a stacked tiff file and convert it to the ND2 format.
Parameters
LoopParam
Step between the frames. Units depend on the previous parameter: Time [ms], Z-step[microns]. The parameter is irrelevant for the XY multipoint type of document.
SaveModified
Specifies whether to save an opened document when it has been modified.
Asks whether to save changes or not. Ask before overwriting. | |
Changes are saved automatically. Overwrite existing file. | |
Changes are not saved. Always discard the image. Do not save (handled in macro). | |
Save into different folder. | |
Cancels the operation. |
Note
If number of opened images exceeds the number, defined in the General Options dialog box, firstly opened images will be closed. If the images have been changed and not saved, the SaveModified parameter allows to save them.
This function runs the File > Save/Export to TIFF Files command.
Description
_ExportImagesToTIFF();
This function opens the Export Images to TIFF dialog window.
See Also
ExportImagesToTIFF
This function runs the File > Import/Export > Export Multiple ND Files command.
Description
_ND_BatchExport();
This function opens the Export Multiple ND Files window.
This function runs the File > Import/Export > Create ND File from BioStation NEX command.
Description
_ND_BioStationNex_Import();
This function opens the Import Biostation NEX File dialog window.
See Also
This function runs the File > Import/Export > Create ND File from File Sequence command.
Description
_ND_Convert();
This function displays the Convert To ND dialog window.
This function runs the Applications > 6D > Define/Run ND Acquisition command.
Description
_ND_CreateExperiment();
This function displays the Multidimensional Acquisition dialog window.
This function runs the File > Import/Export > Create JSON File Sequence Description command.
Description
_ND_CreateJsonSequence();
Opens the Create JSON File Sequence Description dialog widow.
This function runs the Applications > 6D > Define/Run ND Multipoint Set Acquisition command.
Description
_ND_CreateMultipointSet();
This function displays the ND Multipoint Set Acquisition window.
Description
_ND_CreateNDAdvanced();
This function opens the ND Advanced Acquisition dialog window which sets advanced ND document acquisitions.
This function runs the File > Import/Export > Crop ND Document command.
Description
_ND_Crop();
This function displays the Multidimensional Crop dialog window.
This function runs the File > Import/Export > Create ND File from DICOM command.
Description
_ND_Dicom_Import();
This function opens the DICOM Import window which creates a DICOM file from an ND document.
This function runs the Image > ND Processing > Exchange Dimensions command.
Description
_ND_ExchangeDimensions();
Opens the Exchange Dimensions dialog window which is used to transform an existing dimension into a different one. You can for example create a timelapse image sequence from a Z-Stack.
This function runs the File > Import/Export > Export ND Document command.
Description
_ND_Export();
This function displays the ND Export dialog window.
This function runs the File > Import/Export > ND Export to TIFF command.
Description
_ND_ExportToTIFF();
This function opens a dialog for exporting the current ND file to TIFF file(s).
This function runs the File > Import/Export > Split Multipoints command.
Description
_ND_SplitMultipoints();
This function displays the dialog window for ND multipoints splitting. This dialog will appear only if multipoint dimension is present in the current ND document. Then you can specify destination directory and prefix for output files.
Description
_OpenSequence( char *Image
, intSeqFilename
, intSeqFilenameMaxLen
, int *SeqSize
, int *SeqType
, intSaveModified
);
This function displays a dialog box for opening file sequences. The same dialog box opens when you are trying to open a file (File > Open) that is a part of an image sequence.
The SaveModified parameter is for internal use only and must be set to 0.
Parameters
SaveModified
Specifies whether to save an opened document when it has been modified.
Asks whether to save changes or not. Ask before overwriting. | |
Changes are saved automatically. Overwrite existing file. | |
Changes are not saved. Always discard the image. Do not save (handled in macro). | |
Save into different folder. | |
Cancels the operation. |
Note
If number of opened images exceeds the number, defined in the General Options dialog box, firstly opened images will be closed.