Shift

_AlignChannels, _AlignChannelsOnBeads, _ShiftDown, _ShiftLeft, _ShiftRight, _ShiftSubPixel, _ShiftSubPixelZ, _ShiftUp, AlignChannels, AlignChannelsLow, AlignChannelsOnBeads, ShiftDown, ShiftDownND, ShiftImage, ShiftImageND, ShiftLeft, ShiftLeftND, ShiftRight, ShiftRightND, ShiftSubPixel, ShiftSubPixelND, ShiftSubPixelZ, ShiftUp, ShiftUpND

AlignChannels

Interactive command to this function: Image > Channel Alignment and Registration > Align Channels

Description 

 AlignChannels(
   char  SettingsName
);

Aligns the channels using the specified settings.

Parameters

char SettingsName

Name of the setting for the alignment.

""

Last setting will be used.

NULL

Last setting will be used.

AlignChannelsLow

Description 

 AlignChannelsLow(
   double *LpShiftX,
   double *LpShiftY,
   double *LpShiftZ,
   int  Channel
);

Aligns channels of the current document based on the specified distance. Count parameter is the number of channels.

Parameters

double *LpShiftX

Distance in X measured in [px].

double *LpShiftY

Distance in Y measured in [px].

double *LpShiftZ

Distance in Z measured in [px].

int Channel

Index number of the channel.

AlignChannelsOnBeads

Description 

 AlignChannelsOnBeads(
   char  SettingsName
);

Applies the channel alignment on beads (see: _AlignChannelsOnBeads).

Parameters

char SettingsName

Name of the setting for the alignment.

""

Last setting will be used.

NULL

Last setting will be used.

ShiftDown

Interactive command to this function: Image > Shift > Down

Description 

 ShiftDown();

One pixel shift of the current color (gray) image downward.

ShiftDownND

Description 

 ShiftDownND(
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

One pixel shift of the current color (gray) image downward.

Parameters

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

ShiftImage

Description 

 ShiftImage(
   int  ShiftHor,
   int  ShiftVer
);

Shifts the current color (gray) image horizontally and vertically.

Parameters

int ShiftHor

Number of pixels by which the original image is shifted in the horizontal direction. Positive value for shift to right, negative value for shift to left.

int ShiftVer

Number of pixels by which the original image is shifted in the vertical direction. Positive value for shift downward, negative value for shift upward.

Return Values

0

the function was successful

-3

out of memory

-9

the function has failed (the shift was out of range)

-13

no document window is opened

ShiftImageND

Description 

 ShiftImageND(
   int  ShiftHor,
   int  ShiftVer,
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

Shift of the current color (gray) image horizontally and vertically.

Parameters

int ShiftHor

Number of pixels by which the original image is shifted in the horizontal direction. Positive value for shift to right, negative value for shift to left.

int ShiftVer

Number of pixels by which the original image is shifted in the vertical direction. Positive value for shift downward, negative value for shift upward.

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

ShiftLeft

Interactive command to this function: Image > Shift > Left

Description 

 ShiftLeft();

One pixel shift of the current color (gray) image to the left.

ShiftLeftND

Description 

 ShiftLeftND(
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

One pixel shift of the current color (gray) image to the left.

Parameters

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

ShiftRight

Interactive command to this function: Image > Shift > Right

Description 

 ShiftRight();

One pixel shift of the current color (gray) image to the Right.

ShiftRightND

Description 

 ShiftRightND(
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

One pixel shift of the current color (gray) image to the Right.

Parameters

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

ShiftSubPixel

Description 

 ShiftSubPixel(
   char *LpChannelName1,
   double  ShiftHorDbl1,
   double  ShiftVerDbl1,
   char *LpChannelName2,
   double  ShiftHorDbl2,
   double  ShiftVerDbl2,
   char *LpChannelName3,
   double  ShiftHorDb3,
   double  ShiftVerDbl3,
   char *LpChannelName4,
   double  ShiftHorDbl4,
   double  ShiftVerDbl4
);

Shifts the current image horizontally and vertically. You can pass decimal numbers as parameters.

Parameters

char *LpChannelName1

Valid string for storing the channel name.

double ShiftHorDbl1

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl1

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName2

Valid string for storing the channel name.

double ShiftHorDbl2

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl2

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName3

Valid string for storing the channel name.

double ShiftHorDb3

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl3

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName4

Valid string for storing the channel name.

double ShiftHorDbl4

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl4

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

See Also 
ShiftImage, Int_GetMouseClickSubPixelPos

ShiftSubPixelND

Description 

 ShiftSubPixelND(
   char *LpChannelName1,
   double  ShiftHorDbl1,
   double  ShiftVerDbl1,
   char *LpChannelName2,
   double  ShiftHorDbl2,
   double  ShiftVerDbl2,
   char *LpChannelName3,
   double  ShiftHorDb3,
   double  ShiftVerDbl3,
   char *LpChannelName4,
   double  ShiftHorDbl4,
   double  ShiftVerDbl4,
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

Shifts the current image horizontally and vertically. You can pass decimal numbers as parameters.

Parameters

char *LpChannelName1

Valid string for storing the channel name.

double ShiftHorDbl1

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl1

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName2

Valid string for storing the channel name.

double ShiftHorDbl2

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl2

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName3

Valid string for storing the channel name.

double ShiftHorDb3

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl3

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

char *LpChannelName4

Valid string for storing the channel name.

double ShiftHorDbl4

Number of pixels to move image horizontally. Positive value for shift to right, negative value for shift to left.

double ShiftVerDbl4

Number of pixels to move image vertically. Positive value for shift downward, negative value for shift upward.

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

See Also 
ShiftImage, Int_GetMouseClickSubPixelPos

ShiftSubPixelZ

Description 

 ShiftSubPixelZ(
   int  Channel,
   double  ShiftZDbl,
   int  ShiftInMicrons,
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

Shifts the selected Channel in Z so that you correct channel Z offset. You can shift a Z stack by one plane or by any distance (in that case the resulting image is interpolated from the two adjacent frames.

Parameters

int Channel

Index number of the channel.

double ShiftZDbl

Distance to be shifted in Z, negative or positive.

int ShiftInMicrons

Is the ShiftZDbl value specified in microns?

1

Shift by microns (if the Z stack is not calibrated, ShiftZDbl = 1 z-step will be used).

0

Shift by fractions or whole z-step.

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

See Also 
ShiftImage, Int_GetMouseClickSubPixelPos

ShiftUp

Interactive command to this function: Image > Shift > Up

Description 

 ShiftUp();

One pixel shift of the current color (gray) image Upward.

ShiftUpND

Description 

 ShiftUpND(
   int  NDTLoop,
   int  NDMPLoop,
   int  NDZLoop
);

One pixel shift of the current color (gray) image Upward.

Parameters

int NDTLoop

0

apply to the current loop only

1

apply to the whole Time dimension

int NDMPLoop

Apply to Multi Point dimension.

0

apply to the current loop only

1

apply to the whole Multi Point dimension

int NDZLoop

Apply to Z dimension

0

apply to the current loop only

1

apply to the whole Z Series dimension

_AlignChannels

This function runs the Image > Channel Alignment and Registration > Align Channels command.

Description 

 _AlignChannels();

Opens the Align Channels window (see: Image > Channel Alignment and Registration > Align Channels) enabling to shift each channel in the X, Y or Z direction.

See Also 
AlignChannels

_AlignChannelsOnBeads

Description 

 _AlignChannelsOnBeads();

Opens the Align Channels on Beads window.

_ShiftDown

This function runs the Image > Shift > Down command.

Description 

 _ShiftDown();

This function moves the current image or a selected component by one pixel in the defined direction. The pixels that overflow the image borders appear on its opposite side.

_ShiftLeft

This function runs the Image > Shift > Left command.

Description 

 _ShiftLeft();

This function moves the current image or a selected component by one pixel in the defined direction. The pixels that overflow the image borders appear on its opposite side.

_ShiftRight

This function runs the Image > Shift > Right command.

Description 

 _ShiftRight();

This function moves the current image or a selected component by one pixel in the defined direction. The pixels that overflow the image borders appear on its opposite side.

_ShiftSubPixel

Description 

 _ShiftSubPixel();

This function opens the Manual Channel Alignment dialog window. Use tools in this window to align precisely channels within a pixel precision.

_ShiftSubPixelZ

Description 

 _ShiftSubPixelZ();

Opens a dialog window for correcting Z-offset between channels. See ShiftSubPixelZ.

_ShiftUp

This function runs the Image > Shift > Up command.

Description 

 _ShiftUp();

This function moves the current image or a selected component by one pixel in the defined direction. The pixels that overflow the image borders appear on its opposite side.