Binary

Binary > Define Threshold

Note

If you are running NIS-Elements with Local Options (Step 2), please see Define Threshold for the appropriate dialog description.

Thresholds the image and creates a binary layer. Please see Thresholding.

Create new binary layer

You can create multiple binary layers within one document. Use the View > Analysis Controls > Binary Layers control window to manage all binary layers at once.

This button opens a dialog window, which saves the currently thresholded binary as a new layer. Enter Name of the new layer. Set it as visible or not, and specify its color.

Apply To

Apply the command to the whole image sequence, the selected dimension or just the current image frame. See ND2 Files Processing.

Define Threshold

(requires: Local Option)

Thresholds the image and creates a binary layer. Please see Thresholding.

Picking tools

Select a picking tool and click on objects in the image you wish to detect. Color values of each of the clicked pixel(s) are used to adjust the low and the high threshold values so that the clicked pixel would stay inside the thresholded interval. To reset the threshold values back to default click .

Channel Selection

This drop-down menu specifies which channel is thresholded when the Channels mode is selected.

Custom Range

Zooms to the current range.

Actual Range

Zooms to the minimum - maximum range.

Full Range

Zooms to the full domain.

Smooth, Clean, Fill Holes, Separate

These binary processing functions can be activated and their value adjusted using the arrows or directly by typing the value into the edit box. Fill Holes processing can only be turned on/off whereas the values of other processings are applied as a radius in ยตm or px.

Size, Circularity

Filter the detected binary objects using the Size or Circularity restriction filters.

Create New Binary Layer

You can create multiple binary layers within one document. Use the View > Analysis Controls > Binary Layers control window to manage all binary layers at once.

Full Image/Use ROI

When turned on, this function thresholds only in the ROI area.

Save/Load Threshold Settings...

Saves/loads the settings of this dialog window to/from a .threshold file.

Open Help

Opens the help document.

Apply To

Apply the command to the whole image sequence, the selected dimension or just the current image frame. See ND2 Files Processing.

Preview

If turned on, the thresholding settings are shown directly in the image once the progress indicator below the switch is fully displayed.

OK

Confirms the thresholding settings and closes the dialog window.

Cancel

Closes the dialog window without applying any thresholding settings.

Binary > Threshold

Segments color image according to threshold levels for RGB.

This function detects pixels with RGB intensities within the range specified by the Binary > Define Threshold command. Current binary image is the result of the transformation.

See ND2 Files Processing for description of common settings.

Binary > Auto Threshold

Performs automatic threshold of the current image.

Method

Select one of the available algorithms. Try it on your specimen, to see which one is best for your images:

Original Otsu

For more details please see en.wikipedia.org/wiki/Otsu%27s_method.

New M-Threshold

For more details please see en.wikipedia.org/wiki/Maximally_stable_extremal_regions.

Channel

Select an image channel to be processed.

Threshold

Choose whether you want to detect dark or bright objects.

Dark/Bright areas significantly differ in size

Auto threshold works well on images with balanced intensities (bright and dark areas have similar size). If the intensities are not balanced, they should be compensated using this function.

Binary > Smart Threshold

This command is designed to threshold objects of similar size and average pixel intensity.

  • Click in the middle of an object.

  • Scroll the mouse wheel. A preview of the future binary layer dynamically appears in the image while you are scrolling the mouse wheel. This defines the approximate size of detected object. Similar objects throughout the image are being detected.

  • Click the secondary mouse button when you are satisfied with the preview. A binary layer is created.

  • Smart threshold can be performed repeatedly. The new data are added to the original binary layer.

Binary > Spot Detection > Bright Spots

This function opens the Spot Detection dialog window in the Bright Spots mode. It is used mainly for detecting circular objects with similar sizes. For more information please see Spot Detection.

Note

General analysis 3 spot detection uses the Different Sizes object detection method.

Binary > Spot Detection > Dark Spots

This function opens the Spot Detection dialog window in the Dark Spots mode. It is used mainly for detecting circular objects with similar sizes. For more information please see Spot Detection.

Note

General analysis 3 spot detection uses the Different Sizes object detection method.

Binary > Segmentation > Homogeneous Area Detection

Opens the Homogeneous Area Detection dialog window suitable for detecting objects on a homogeneous background and objects which are difficult to segment. Advantage of this function is that the objects do not need to be distinguished by intensity because the function works with edges. This is useful especially for DIC and phase-contrast images.

Channel

Channel on which the detection will be performed.

Inversion

Inverts the detected binary.

Compactness

The higher the value, the more compact object border is created.

Edge Based Method/Variance Based Method

Try which method works best for your image. In some cases, the Variance Based Method may bring better results.

Threshold

Use this slider to find the optimal threshold for your objects.

Apply To

Apply the command to the whole image sequence, the selected dimension or just the current image frame. See ND2 Files Processing.

Binary > Segmentation > Graph Cut Segmentation

Implements the so-called โ€œGraph cut algorithmโ€ to enable segmentation of samples where it is impossible to use thresholding or other segmentation methods.

  1. Create at least two binary layers each representing certain type of scene. E.g.:

  2. Run the Binary > Segmentation > Graph Cut Segmentation command.

Define Measurement Sequence panel is used for the preparation of advanced measurements which are organized in the Measurement Explorer and executed by the Measurement Sequence Run. A set of measurement tools is arranged in five groups enabling to easily define any complex measurement.

Binary > Segmentation > Wound Area Detection

This command performs automatic wound detection. It tries to detect homogeneous areas within the image and save the results into a binary layer. It can be well used for analysis of โ€œwound healingโ€ on time-lapse images.

Apply to channel

Select a channel to be processed.

All

On multi-channel images, all channels are processed separately and the resulting binary layers are merged into one.

Intensity

On RGB images, the intensity component is processed. Intensity = (R+G+B)/3.

Close Holes - Count

Use the Close Holes command to fill holes in the detected objects. Specify how many times the command will be run.

Delete Small Objects - Count

Delete the smallest objects. Specify how many times the command will be run.

PostProcessing Area Intersection

Available on non-timelapse images.

This selection enables you to perform logical AND with the previous result (binary layer). Only pixels which were detected in both runs will remain in the binary layer.

Threshold

Available on timelapse images.

In most cases the Auto threshold function works fine. If you need to adjust your wound area detection threshold more precisely, use the Manual slider.

Apply To

See ND2 Files Processing.

Preview

Select this option to preview the effect of the operation on the current image.

Binary > Segmentation > Threshold Edges

This command finds object edges in the image and marks them by a binary layer.

Background

Select color of the image background.

Smooth

Select this option to make the detected edges smoother.

Fine Tunning

An automatic algorithm finds the edges in the image. If the image is not optimal, you may adjust the result by moving this slider. Check the Preview box to see how it influences the binary layer.

Minimal Edge Size

Specify the minimum edge length in pixels. Only objects with longer edge will be detected.

Preview

Select this option to preview the effect of the operation on the current image.

Fill the area inside

Fills the area inside the edges with the binary layer.

Binary > Segmentation > Segment Tight Borders

Performs the segmentation of binary layer using tight borders detection.

Working Channel

Choose the working channel for the detection (the options depend on the type of the image).

Step

Choose which step will be used in the detection (Threshold Value, Cut Branches, Connect Free Endings, Vanish Objects).

Apply To

Apply the command to the whole image sequence, the selected dimension or just the current image frame. See ND2 Files Processing.

Preview

Select this option to preview the effect of the operation on the current image.

Binary > Define 3D Threshold

(requires: 3D Measurement)

This command thresholds 3D objects. Following window appears:

The point is to determine which pixels will and which will not be included in the binary layer and thereby distinguish objects to be analyzed from background. You can define the threshold on an active channel of the image which you can select from the pull down menu. Then move the sliders to define the limit values for selected active channel.

Binary > 3D Spot Detection > Bright Spots

(requires: 3D Measurement)

This command detects bright circular objects within a 3D space. Please see Binary > Spot Detection > Bright Spots for further description.

Note

General analysis 3 spot detection uses the Different Sizes object detection method.

Binary > 3D Spot Detection > Dark Spots

(requires: 3D Measurement)

This command detects dark circular objects within a 3D space. Please see Binary > Spot Detection > Dark Spots for further description.

Note

General analysis 3 spot detection uses the Different Sizes object detection method.

Binary > Connect 3D Objects in Binaries

(requires: 3D Measurement)

Connects Z-stack slices of 2D binary objects into 3D binary objects.

Binary > 3D Processing/Morphology > Open

(requires: 3D Measurement)

Performs morphological opening on 3D binary image. See also Binary > Open.

Binary > 3D Processing/Morphology > Close

(requires: 3D Measurement)

Performs morphological closing on 3D binary image. See also Binary > Close.

Binary > 3D Processing/Morphology > Erode

(requires: 3D Measurement)

Performs morphological erosion on 3D binary image. See also Binary > Erode.

Binary > 3D Processing/Morphology > Dilate

(requires: 3D Measurement)

Performs morphological dilation on 3D binary image. See also Binary > Dilate.

Binary > 3D Processing/Morphology > Euclidean Open

(requires: 3D Measurement)

Euclidean Open performs Euclidean Erosion followed by Euclidean Dilation. It clears all areas which cannot contain a circle/sphere of the specified radius.

See Also 
Binary > Open

Binary > 3D Processing/Morphology > Euclidean Close

(requires: 3D Measurement)

Euclidean Close performs Euclidean Dilation followed by Euclidean Erosion. It fills all areas of background which cannot contain a circle/sphere of the specified radius.

See Also 
Binary > Close

Binary > 3D Processing/Morphology > Euclidean Erode

(requires: 3D Measurement)

Euclidean erosion sets each pixel to the value computed as minimum from all pixels within the specified Radius. This will shrink/remove binary objects in the image.

See Also 
Binary > Erode

Binary > 3D Processing/Morphology > Euclidean Dilate

(requires: 3D Measurement)

Euclidean dilation sets each pixel to the value computed as maximum from all pixels within the specified Radius. This will enlarge/merge binary objects in the image.

See Also 
Binary > Linear Morphology > Dilate

Binary > 3D Processing/Morphology > Grow Objects

(requires: 3D Measurement)

Grows each binary object by a circle (2D) / sphere (3D) of the specified radius. Objects will not be merged together.

Binary > 3D Processing/Morphology > Clean

(requires: 3D Measurement)

Removes small objects from 3D binary image. See also Binary > Clean .

Binary > 3D Processing/Morphology > Close Holes

(requires: 3D Measurement)

Removes small holes from 3D binary image. See also Binary > Close Holes.

Binary > 3D Processing/Morphology > Smooth

(requires: 3D Measurement)

Smooths binary image contours in 3D. See also Binary > Smooth.

Binary > 3D Processing/Morphology > Separate Objects

(requires: 3D Measurement)

Separates 3D binary objects. The lower the Number, the more borders separating the binary objects are introduced.

Binary > 3D Processing/Morphology > Fill Holes

(requires: 3D Measurement)

Fills holes inside 3D binary objects present in the current volume. Holes touching image borders are not filled.

Binary > 3D Processing/Morphology > Skeletonize

(requires: 3D Measurement)

Makes a skeleton of the 3D binary image.

See Also 
Binary > Skeleton Morphology > Skeletonize

Binary > 3D Processing/Morphology > Detect Branching on Skeleton

(requires: 3D Measurement)

Creates 1pixel seeds out of a skeletonized 3D binary image. This function serves for automatic recognition of the intersection points of single-pixel lines.

Binary > 3D Processing/Morphology > Detect Ending on Skeleton

(requires: 3D Measurement)

Creates 1pixel seeds out of a skeletonized 3D binary image. It preserves only ending points of the skeleton and clears all other pixels.

Binary > 3D Processing/Morphology > Convex Hull

(requires: 3D Measurement)

This function expands non-convex 3D binary image objects to their convex boundaries.

Binary > 3D Processing/Morphology > Distance Function

(requires: 3D Measurement)

This function performs distance transformation on a Z-stack of binary layers. The function calculates distance from the edge of the 3D binary inwards. For uncalibrated documents, pixel distance is used and Z distance is multiplied by 4. For calibrated documents, the distance is calculated in units used for the calibration, then multiplied by 10 and converted into integers. Float distance is not multiplied, ยตm distance is used instead.

See also Binary > Advanced Morphology > Distance Function and ND2 Files Processing for description of other settings.

Binary > 3D Processing/Morphology > Create Binary from 3D Centroids

(requires: 3D Measurement)

This command calculates and marks a centroid on binary image in 3D. Select which method is used to calculate the centroid. See also Binary > Detect > Centroids.

Binary > Binary Editor

This command opens the binary layer(s) editor. Please see Binary Editor for detailed description of the tools.

Binary > Manual Segmentation

(requires: Local Option)

Opens the Manual Segmentation toolbar. Tools for drawing the binaries are red, whereas tools for erasing are blue. Use the Tab button to switch between drawing and erasing. Set the thickness of the drawn elements using the Size drop-down menu or select an existing line thickness (can be different for drawing and erasing). The last chosen tool in drawing/erasing is remembered. Adjust the tools in the Settings dialog. Once you start drawing a binary, a new toolbar above the image is shown and a new binary layer is created. You can add a new binary layer by clicking on the button. The drawn binaries are saved into the layer which is selected (highlighted). Checking the check box of the specific layer makes the layer visible in the image. The order of the layer buttons can be changed by dragging and dropping them.

Each layer can also be attached to an image channel. Simply right-click on the layer rectangle, select Attach To and choose a channel. The attached channel is indicated in the layer button. The button context menu can also be used to detach a layer from a channel (Detach from), remove the selected layer (Remove), rename it (Rename, or use double-click) or change its color (Change Color).

  1. Displays/hides all binary layers. Use the O keyboard shortcut.

  2. Synchronizes binary layers with their attached channel.

    Note

    If the Sync button is on, the created binary layer is automatically attached to the selected image channel. This works for multi-channel images, not for RGB images. For RGB images, the created binary layer is always global (not attached to any color component).

  3. Creates a new empty binary layer.

  4. Layer3: displayed (checked box) and selected (highlighted) for binary drawing.

  5. Layer2: displayed (checked box), but not selected for binary drawing.

  6. Layer1: hidden (unchecked box), not selected for binary drawing, assigned to the FITC channel.

Tip

Select a channel in the image and then start drawing. A new binary layer is created and it is automatically assigned to the selected channel.

Open View > Analysis Controls > Binary Layers to see an overview of all layers present in the image. Once the binary drawing is finished, click Exit Editor or hit Esc.

Undo

Standard undo action.

Redo

Standard redo action.

Separate

Detects standalone objects that are connected together and isolates them.

Fill Holes

Fills the holes inside binary objects.

Invert

Inverts the current binary.

Clear Screen

Clears all binaries in the image.

Settings

Opens the Manual Segmentation - Settings dialog where you can manage custom and predefined presets. Each preset can be adjusted to contain just the tools the user needs (checked items). The order of the tools can be changed by clicking and dragging a tool up/down in the list. Shortcut for each tool or function can be changed by clicking on the shortcut and typing in the new key combination. Once you finish editing your shortcut list, use Save or Save As... to save it as a preset. Any presets can be selected from the Preset drop-down menu. The selected preset can also be imported (Import ) or exported ( Export) from/to an .msegpreset file. To remove a preset from the preset list, use Remove.

A list of other useful shortcuts is shown on the right.

Alternative Polyline and Polygon Drawing - if this option is checked, polylines and polygons are not drawn by straight lines by default but their drawing follows the mouse cursor position without the need of holding down the primary mouse button. To draw straight lines, hold down the primary mouse button. If this option is unchecked, straight lines are drawn by default and the user can hold down the primary mouse button to draw arbitrary shapes.

Tip

When drawing in a zoomed image, hold down Space bar and drag the image to pause the drawing and shift the position of the zoomed image.

Save Image

Saves the drawn binaries together with the current image. A standard Save As Image dialog window is shown.

Exit Editor

Exits the binary editor.

Binary > Binary Operations

Enables logical transformation of binary images. The Binary Operations dialog box appears.

Choose one type of operation using the icons in the top row:

AND

Intersection of the selected binary layers will be performed.

OR

Union operation will be performed on the selected binary layers.

Create Subtraction of the Second Layer from the First Layer

Subtraction of the second layer from the first layer will be performed.

Create Subtraction of the First Layer from the Second Layer

Subtraction of the first layer from the second layer will be performed.

XOR

Non-Equivalence operation will be performed on the selected binary layers.

EQ

Equivalence operation will be performed on the selected binary layers.

Copy the first layer

First layer will be copied to a layer selected in the Insert Result into option.

First layer, Second layer

Select which binary layers will be used in the operation.

Insert Result Into

Decide in what layer the result of the operation will be stored - either in one of the selected (source) layers or in a New Layer which will be created upon the binary operation start.

Preview

Select this option to preview the effect of the operation on the current image.

Procedure

  1. Select the First Layer and the Second Layer from the combo boxes. Binary operations will be performed between these two layers.

  2. Select the logical operation to be performed. You can also select the Preview check box to view the result of the operation in the image window.

  3. Now choose where the result will appear in the Insert Result into area. You can select to overwrite the data in the first or second layer with the data of the result or to create a new layer containing the result. If so, type the name of the new layer in the edit box.

  4. Click OK to confirm the action.

Binary > Mask > Define Mask by Threshold

Runs the Binary > Define Threshold command and saves the resulting binary layer as the graticule image.

Binary > Mask > Edit Mask

Opens the binary editor in which it is possible to draw/edit the graticule mask.

See also Drawing tools

Binary > Mask > Clear Mask

Deletes the graticule mask created by either of the commands:

Binary > Mask > Load Mask

Displays a dialog window which selects a file with the graticule, previously exported via the Binary > Mask > Save Mask command.

Binary > Mask > Save Mask

Saves the current graticule mask. A Save As Image dialog box is shown.

Binary > Mask > Mask Transparency

Sets transparency of the graticule mask. The following options are available:

Display Contour Only

Only a single pixel contour around the mask is shown.

Partial Transparency

The mask is shown partially transparent.

No Transparency

The mask is shown in full color without any transparency.

Binary > Mask > Mask Properties

Opens the graticule properties window and selects the Mask type. See Binary > Mask > Mask Properties. Mask will be activated after clicking the OK button.

Binary > Open

Morphological opening performs Erosion followed by Dilation. This has the effect of clearing all objects which are too small with respect to the specified parameters. Larger structures are not significantly affected.

The Open on Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

Binary > Close

Morphological closing performs Dilation followed by Erosion. It fills all holes in objects which are too small with respect to the specified parameters. Closely neighboring objects get connected.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Erode

Erosion sets each pixel to the value computed as minimum from all pixels in the matrix. Erosion shrinks objects and removes small ones. A non-convex object can split into several parts.

The Erode Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

See Also 
Binary > Dilate

Binary > Dilate

Dilation sets each pixel to the value computed as maximum from all pixels in the matrix. Dilation expands objects and structures in binary image. Neighboring objects are connected and small holes are filled.

The Dilate Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

See also Binary > Erode.
Binary > Clean

Removes small objects from binary image. This transformation is also called geodesic opening. First, the image is eroded and small objects disappear. Then the remaining eroded objects are reconstructed to their original size and shape. The advantage of this algorithm is that small objects disappear but the rest of the image is not affected. The function can be performed repeatedly.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Close Holes

Removes small holes from the current binary image.

Fills all holes in the binary image which would be destroyed by Erosion of the specified parameters.

The Close Holes dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Smooth

Smooths binary image contours.

It is possible to define the strength of the function by specifying the number of iterations.

Reset

Sets the dialog default values.

Apply To

Apply the command to the whole image sequence, the selected dimension or just the current image frame. See ND2 Files Processing.

Preview

Select this option to preview the effect of the operation on the current image.

Binary > Fill Holes

Fills in holes in binary image.

See ND2 Files Processing for description of common settings.

Binary > Convex Hull

Expands non-convex binary image objects to their convex boundaries. Convex hull of an object can be defined as the intersection of all half spaces that contain the object, i.e. it is the smallest convex set, which covers the object. This operation uses half spaces rotating in 10 degrees step. Union of all convex hulls is displayed.

See ND2 Files Processing for description of common settings.

Binary > Detect > Contour

Transforms binary image to its 1 pixel wide contour.

See ND2 Files Processing for description of common settings.

Binary > Detect > Centroids

Converts binary objects to their centroids. Select the method of determining centroid positions.

Build centroid from:, Signal is
Just binary

Only the shape of each binary object will be taken into account.

Weighted Binary/Bright, Weighted Binary/Dark

If bright/dark areas dominate aside of the centroid position calculated from just the binary layer, the centroid will be shifted in that direction.

See ND2 Files Processing for description of common settings.

Binary > Morpho Separate Objects

Separates binary objects into multiple smaller objects. The higher the Count, the fewer objects will be separated.

Morpho Separate Objects dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

See ND2 Files Processing for description of common settings.

Binary > Remove Objects Touching Borders

This command deletes every binary object which touches the image border.

Binary > Linear Morphology > Open

Performs morphologic opening on binary image using the selected linear matrix. The choice of the structuring element defines the direction in which the binary image will be affected. See Binary > Open.

The Linear Open Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Linear Morphology > Close

Performs morphologic closing on binary image using the selected linear matrix. The choice of the structuring element defines the direction in which the binary image will be affected. See Binary > Close.

The Linear Close Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Linear Morphology > Erode

Performs erosion on binary image, it removes a layer of pixels in the direction of the selected matrix. See Binary > Erode.

The Linear Erode Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

Binary > Linear Morphology > Dilate

Performs dilation on binary image, it adds a layer of pixels in the direction of the selected matrix.

See also Binary > Dilate.

The Linear Dilate Binary Image dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Number of iterations.

Reset

Sets the dialog default values.

See ND2 Files Processing for description of common settings.

See Also 
Binary > Erode

Binary > Advanced Morphology > Expand (BinRef=Condition)

Performs conditional dilation on binary image.

Note

The current binary image is dilated and then intersected by reference binary image. This step is repeated until there is no difference in the sequence of consecutive images. The current image may be e.g. erosion of the original image copied to reference binary image. In this case the function reconstructs only bigger objects and rejects smaller objects.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Zones of Influence

Creates zones of influence by drawing four connectivity borders. For each pixel of a border between two objects, the distance to both objects is the same.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Homotopic Marking

Marks objects with homotopic marks. Homotopic marking is a sequential homotopic thinning. It is used for marking objects. A filled object (with no holes) is transformed to a single point. Every hole leaves a closed contour.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Pruning

Sequentially removes end-points from binary image. This function is used for simplification of skeletons by removal of branches. Closed contours remain unchanged.

The following window appears.

Layers

Specifies the number of iterations; 0 stands for complete removal of branches. This command is mainly used for skeletonized images.

Preview

Select this option to preview the effect of the operation on the current image.

OK

Apply the operation to the current image and close the window.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Hit-Or-Miss

Extracts points from binary image according to structuring element. The Hit-Or-Miss Transformation dialog box appears.

Objects, Background, Ignore

Identifies the state of each pixel in a structuring element.

Layout

An edit window where user defines the state of each pixel of a structuring element.

Help

Displays relevant help page.

Preview

Select this option to preview the effect of the operation on the current image.

Define

Opens a window for editing a user-defined structuring element.

  1. Enter a name for a user-defined structuring element.

  2. Click to the Layout boxes to define the kernel.

  3. Confirm it with the OK button.

Delete

Deletes the currently selected structuring element.

OK

Apply the operation to the current image and close the window.

Note

The Hit-Or-Miss transformation maps binary image to the binary image in the following way: only points that match the structuring element retain in the binary image. Matrix elements values are 0, 1 or 2. 0 specifies the background, 1 specifies the foreground (objects) and 2 specifies that this position in the Matrix can be ignored (either foreground or background). E.g. when selecting Hit-Or-Miss transformation with SinglePoint structuring element, only isolated single points remain in the binary image.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Thickening

Dilates a binary image without changing the number of objects - it is a homotopical transformation.

When you invoke this command, the Thickening dialog box appears.

Layers

Specifies the number of iterations, i.e. number of layers being added to each object. Parameter 0 performs ultimate dilation (neighboring objects touch each other).

Inside reference

If checked, conditional thickening is performed. Objects in the current binary image are thickened and then intersected with the reference binary image.

Preview

Select this option to preview the effect of the operation on the current image.

OK

Apply the operation to the current image and close the window.

Help

Displays the relevant help page.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Distance Function

Displays the distance of each object pixel to the nearest boundary (background pixel) as an intensity value.

The resulting color image is a 16-bit image (to cover distances longer than 255 px)

The Distance function dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Output as New Channel

A new channel will be created containing the result of the function (otherwise the current image is converted to a mono image).

Attach channel to

Select a binary layer to which the resulting channel will be attached. A virtual link is created, the attached binary layer inherits color of the channel and its visibility is synchronized with the channel. See also View > Analysis Controls > Binary Layers .

OK

Apply the operation to the current image and close the window.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

See Also 
Binary > Advanced Morphology > Ultimate Erosion

Binary > Advanced Morphology > Ultimate Erosion

Sequentially erodes binary image, but leaves small areas which would completely disappear in the next erosion.

The Ultimate Erosion dialog box appears.

Matrix

Click the button to change the structuring element used for this operation. See Structuring Element = Kernel = Matrix.

Count

Set 1 for maximum possible erosion. Any number higher than 1 will do fewer erosions and preserve bigger parts of each object.

OK

Apply the operation to the current image and close the window.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Granulometry

This command creates the granulometry image from the binary image.

Binary > Advanced Morphology > Fast exoskeleton

Creates zones of influence by the fast 'pipe of pixels' algorithm. Performing this command, the ZonesOfInfluenceFast is called and appended to the list of executed functions.

Binary > Advanced Morphology > Medial Axis

This command creates medial axis from the current binary objects.

Matrix

Specifies a structuring element for finding the distance to the boundary.

Endlines suppression

Determines the axis shape. The higher is the value, the more simple is the shape.

#Points for direction

Determines how many points are used to calculate the direction of the medial axis prolongation. Values are larger than 2.

Prolongation

Determines whether the medial axis prolongation is used or not.

Preview

Select this option to preview the effect of the operation on the current image.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Convert to 4-Connectivity

This operation adds pixels to ensure that each pixel which is only 8-connected will become 4-connected. 4-connected pixels are those connected vertically or horizontally, but not diagonally.

See Connectivity.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Convert to 8-Connectivity

This operation removes pixels to ensure that each pixel which is only 4-connected will become 8-connected. 8-connected pixels are those either vertically, horizontally, or diagonally. See Connectivity.

See ND2 Files Processing for description of common settings.

Binary > Advanced Morphology > Connect Objects

Connects binary objects which are closer to each other than the specified distance by a thin line.

Maximal Distance

Set the maximal distance of two objects to be connected.

See Image processing for description of other settings.

Binary > Skeleton Morphology > Skeletonize

Makes a skeleton of the binary image. The current binary image is dilated and then intersected by reference binary image. This step is repeated until there is no difference in the sequence of consecutive images. The current image may be e.g. erosion of the original image copied to reference binary image. In this case the function reconstructs only bigger objects and rejects smaller objects.

Skeleton is a representation that largely preserves extent and connectivity of original binary objects, while pruning most of original pixels.

See ND2 Files Processing for description of common settings.

Binary > Skeleton Morphology > Detect Branching on Skeleton

The purpose of this command is to create 1pixel seeds out of a skeletonized binary image. This function serves for automatic recognition of the intersection points of single-pixel lines.

  1. Use the Binary > Skeleton Morphology > Skeletonize command on an existing binary layer. One pixel lines are created.

  2. Run Binary > Skeleton Morphology > Detect Branching on Skeleton to leave pixels just where the line was branching.

Binary > Skeleton Morphology > Detect Ending on Skeleton

Purpose of this command is to create 1pixel seeds out of a skeletonized binary image. It preserves only ending points of the skeleton and clears all other pixels.

  1. Use the Binary > Skeleton Morphology > Skeletonize command on an existing binary layer. One pixel lines are created.

  2. Run Binary > Skeleton Morphology > Detect Branching on Skeleton to leave pixels just on the lines endings.

Binary > Skeleton Morphology > Cut Branches Recursively on Skeleton

On a skeletonized binary image, branches (free endings) shorter than the defined length will be removed.

Delete branches of maximal length

Shorter branches will be deleted.

Note

โ€œRecursivelyโ€ means that the function is called repetitively until there are some branches left to be cut.

Binary > Skeleton Morphology > Connect Free Endings on Skeleton

On a skeletonized image, connects branch peaks. Set sensitivity of the function in the window:

Connections

Set sensitivity of the function. The higher the more connections will be created.

Use Gabor Response As Input

Apply Gabor edge detection to the image before evaluating the edge strength.

Binary > Skeleton Morphology > Vanish Objects on Skeleton

On a skeletonized image, circular (enclosed) objects with equivalent diameter (eqdia) smaller than the defined value will be deleted. You do not necessarily want to delete small objects but the ones which are mis-detected.

Up to EqDia [px]

Objects with eqdia smaller than this value will be erased.

But keep objects with border stronger than

Set the threshold value for deletion. Binary objects containing a strong-enough edge in the color image will be preserved regardless of the eqdia value.

Use Gabor Response As Input

Apply Gabor edge detection to the image before evaluating the edge strength.

Binary > ND Processing > Max Binary Projection (union)

This command applies maximum intensity projection to all binary layers of the current T or Z ND2 image (The T or Z dimension is required). The result will be union of the binary layers.

Binary > ND Processing > Min Binary Projection (intersection)

This command applies minimum intensity projection to all binary layers of the current T or Z ND2 image. The T or Z dimension is required. The result will be intersection of the binary layers.

Binary > Insert Line, Circle, Ellipse

This command can be used for interactive calling of NIS-Elements drawing functions. The Insert dialog box appears.

Geometry

Select the type of geometry you wish to draw (i.e. one of the following):

Line

Calls the InsertLine function which inserts a line in the image.

Parallel Lines

Calls the InsertLines function which inserts two parallel lines in the image.

Circle

Calls the InsertCircle function which inserts a circle in the image.

Ellipse

Calls the InsertEllipse function which inserts an ellipse in the image.

Rectangle

Calls the InsertRectangle function which inserts a rectangle in the image.

Insert Markers

Calls the InsertMarkers function which inserts a grid of markers in the image.

Marker

Calls the InsertMarker function which inserts one marker.

Parameters

Number and type of parameters changes accordingly to the selected geometry.

Connectivity

4 or 8, defines the way a line is drawn. See Connectivity.

Distance

The distance between parallel lines. Selected Units are used to specify the coordinates.

Drawing mode

You can select a logical operation which will be performed between the existing binary layer and the object(s) being inserted.

Filled

Closed shapes can be either filled or hollow. Select TRUE to fill the shape or FALSE to leave it hollow.

Height, Radius, Radius a, Radius b, Width

Depending on the selected geometry, these parameters define distances significant for each shape. Selected Units are used to specify the distances.

Marker Shape

When inserting markers, one of the predefined marker shapes can be selected from a pull-down menu.

Orientation, Angle

These parameters specify orientation of the object in degrees [ยฐ].

Start x, Start y, End x, End y, Center x, Center y, Position x, Position y

Depending on the selected geometry, these parameters define coordinates significant for placement of the shape (center for a circle, start/end for a line, etc...). Selected Units are used to specify the coordinates.

Units

Select whether the coordinates/dimensions of the shape will be specified in pixels or in the image calibration units.

Note

This option appears only if the current image is calibrated.

OK

Apply the operation to the current image and close the window.

See ND2 Files Processing for description of common settings.

Binary > Track Binaries

(requires: Advanced 2D Tracking)

This command tracks binary objects. See Tracking for more information.

Binary > Invert

Inverts the binary image to its negative.

See ND2 Files Processing for description of common settings.