Reference

_ColorBinCombine, _ColorCombine, _ColorOperations, _WeightedAddition, ColorBinCombine, ColorCombine, ColorFromReference, ColorOperations, ColorSwapReference, ColorToReference, WeightedAddition

ColorBinCombine

Interactive command to this function: Reference > Combine via Binary

Description 

 ColorBinCombine(
   int  ReverseCondition
);

This function enables mixing of two color images (current and reference) based on a binary image. The current binary image determines which part of a result image is taken from the current color image and which part from the reference color image.

Parameters

int ReverseCondition

Specifies which color image corresponds to pixels of value 1 (== object pixels) of the binary image.

0

Object pixels gain color from current color image.

1

Object pixels gain color from reference color image.

Note

You can mix two images using typical parts or a texture in the image. It is useful especially for the video copy printer to enhance or adjust the color of the particular texture, cells or for suppressing the background color. For example, if you have some particles or cells well defined compared to the background, you can threshold them e.g. you can create a binary - condition image. Then you can copy the current color image to the reference one by Color > RefColor command (Reference menu). Then, you can enhance, adjust or assign color to cells by any of the following commands from the Transform menu: Change Hue, Change Saturation, Intensity Transformation. After you are satisfied with the cell´s color, apply Combine via binary command.

See Also 
_ColorBinCombine, ColorToReference

ColorCombine

Interactive command to this function: Reference > Combine Components

Description 

 ColorCombine(
   int  RedComp,
   int  GreenComp,
   int  BlueComp,
   int  RefOut
);

This function enables components mixture over two color images. An interactive equivalent is the _ColorCombine function.

Parameters

int RedComp

Red component of the result image.

0

Red component of current color image.

1

Green component of current color image.

2

Blue component of current color image.

3

Red component of reference color image.

int GreenComp

Green component of the result image.

0

Red component of current color image.

1

Green component of current color image.

2

Blue component of current color image.

3

Green component of reference color image.

int BlueComp

Blue component of the result image.

0

Red component of current color image.

1

Green component of current color image.

2

Blue component of current color image.

3

Blue component of reference color image.

int RefOut

Specifies if current color or reference color image is a target image of the operation.

0

Current color image.

1

Reference color image.

See Also 
_ColorCombine, ColorOperations, _ColorOperations, _ColorCombine

ColorFromReference

This function runs the Reference > Current Image <- Reference command.

Description 

 ColorFromReference();

This function copies the reference color image to the current color image.

See Also 
ColorToReference, ColorSwapReference

ColorOperations

Interactive command to this function: Reference > Image Arithmetics

Description 

 ColorOperations(
   int  ArithmOp,
   int  ColorsFrom
);

This function enables operations over two color images.

Parameters

int ArithmOp

Type of arithmetic operation.

0

(Current+Reference)

1

(Current-Reference)

2

(Reference-Current)

3

Min(Current, Reference)

4

Max(Current, Reference)

5

Current [shad] Reference

6

Current [AND] Reference

7

Current [OR] Reference

8

Abs(Current-Reference)

9

RGB(Current+Reference)

10

RGB(Current-Reference)

11

RGB(Reference-Current)

int ColorsFrom

Current/reference image.

0

Reference image.

1

Current image.

Note

In case of Addition, Subtraction, Min, Max, and Abs (on RGB images), operations are performed on intensities. Then, the ColorsFrom parameter is used to specify which of the two images defines hue and saturation of the resulting image. In case of the shading operation and operations with binary, grayscale, and multichannel images, the ColorsFrom parameter is ignored, and the operation is performed on each channel separately. If values in the resulting image are greater than the maximal intensity value (e.g. 255 for 8-bit images), these values are clipped to that maximal value. If values in the resulting image are less than zero, they are set to zero.

See Also 
_ColorOperations

ColorSwapReference

This function runs the Reference > Current Image <-> Reference command.

Description 

 ColorSwapReference();

This function swaps the reference and current color images.

See Also 
ColorToReference, ColorFromReference

ColorToReference

This function runs the Reference > Current Image -> Reference command.

Description 

 ColorToReference();

This function copies the current color image to a reference color image.

See Also 
ColorSwapReference, ColorFromReference

WeightedAddition

Interactive command to this function: Reference > Weighted Addition

Description 

 WeightedAddition(
   int  AddWeight,
   int  AddContrast,
   int  AddMode,
   int  ColorsFrom
);

This function weights intensities from the current and result images.

Parameters

int AddWeight

Weight in percentage of intensities from the current color image.

int AddContrast

Auto contrast on/off.

0

Auto contrast off.

1

Auto contrast on.

int AddMode

Intensity/RGB.

0

Intensity.

1

RGB.

int ColorsFrom

Current/reference image.

0

Reference image.

1

Current image.

_ColorBinCombine

This function runs the Reference > Combine via Binary command.

Description 

 _ColorBinCombine();

This function displays the Combine via Binary Condition dialog box.

See Also 
ColorBinCombine

_ColorCombine

This function runs the Reference > Combine Components command.

Description 

 _ColorCombine();

This function displays the Combine Components dialog box.

_ColorOperations

This function runs the Reference > Image Arithmetics command.

Description 

 _ColorOperations();

This function displays the Image Arithmetics dialog box.

See Also 
ColorOperations

_WeightedAddition

This function runs the Reference > Weighted Addition command.

Description 

 _WeightedAddition();

This function displays the Weighted Addition dialog box.

See Also 
WeightedAddition