Skip to main content
Version: 2025.09-beta

Define features

The Classification section in the APP author dialog.
The Classification section in the APP author dialog.

In the Classification section the Define feature dialog can be opened by clicking the New Feature button . The steps are shown in the Calculation steps list, and are executed in this order.

The Define Feature dialog.
The Define Feature dialog.
  • Input frame - choose an image frame to use as a basis for the feature image calculations. The frame may be one of the available frames in the image, or one of the previously calculated feature images.
  • Input band - choose an image band in the chosen frame to use as a basis for the feature image calculation. A band may be one of the standard red, green, blue channels, or it may be some other image modality like IHS or other chromaticities. For a more thorough description of the available input bands, see Bands.
  • Define input - Used to setup a New color deconvolution input.
  • Up - Press to move the currently selected step upwards in the list.
  • Down - Press to move the currently selected step downwards in the list.
  • New step - Used to define a new processing step for the feature.
  • Edit - Edit the currently selected step. Can also be opened by double clicking.
  • Delete - Press to delete the currently selected step.

Choose a number of desired steps from the Define feature dialog by adding processing steps.

Define Input

The Create New Color Deconvolution Input dialog.
The Create New Color Deconvolution Input dialog.

Sometimes, achieving sufficient color separation for successful analysis using a predefined color deconvolution can be challenging. In the "Create new color deconvolution" input dialog, it is possible to define axes in a color space coordinate system representing the staining (colors). The dialog is accessed by pressing Define input in the Define feature dialog.

  • Primary stain - Defines the primary axis in the color space coordinate system. This is the color to enhance.
  • Secondary stain - Defines the secondary axis in the color space coordinate system. This is the color to suppress.
  • Background stain - Defines the third axis in the color space coordinate system. If non-stained tissue needs to be suppressed, its color can be added here.
  • Input band name - Defines the name of the custom-made color band.

A predefined color can be selected from the drop-down list:

ColorRGB
Haematoxylin0.0745100.0549020.337255
EOSIN0.6862750.0196080.317647
DAB0.3411760.1019610.043137
AEC0.3294110.0666670.062745
Fast Red0.4235290.0313730.145098
Fast Blue0.0470590.0862750.341176
Alcian Blue0.0313730.1558530.529412
PAS0.4941180.0196080.537255
Methyl Green0.0196080.5568630.584314
Crystal Green0.0235290.3568630.349020
Stain Training dialog.
Stain Training dialog.

Alternatively, a custom color stain can be created by selecting New Stain.

  • Name of New Stain - Defines the name of the custom-made stain color.
  • Delete - Deletes a stored stain color.
  • Pick Color and Save - Selects a color from a colormap.
  • Train Color and Save - Trains a color by selecting it from the image. This is done by marking the color with a label, and then using the selected label to train.

Feature Image

A feature image is used during image processing. The feature image is, as its name proposes, an image that holds image frames which accentuate certain features in the original image. This is used e.g. in the segmentation of images. The feature image is used to distinguish the objects to be segmented from the background of the image. Some objects in color images can be distinct from the background simply by the red, green, and blue color bands, and in this case the feature image holds these bands as separate features. In other cases, prior knowledge of object properties is necessary, and a filtration of one or more bands is the usable feature. Thus the feature image should hold the filtered image band(s).

To show a feature, open APP Author and use the Eye icons in the Feature list to show a feature from the list. Below is an example with a HE-stained tissue section, where the dark cells or nuclei which are small rounded (or elliptical) objects should be accentuated. Four usable features for this purpose are shown: red band, green band, blue band and a blob filtration (2. eigenvalue filter) of the red band.

Original Image (Knee section, LT slice).
Original Image (Knee section, LT slice).
Red band
Green band

Left: Feature 1 - Red band, Right: Feature 2 - Green band (both knee section, LT slice).

Blue band
Red band local filter

Left: Feature 3 - Blue band, Right: Feature 4 - Red band local linear filtrated (both knee section, LT slice).