Operation: replace null with empty image

replace null with empty image

Author:

Volker Bäcker

Example

application    input image

result when image null    result when image not null    The first image is the result when no objects are found.

Description

If the input image is null an empty image with the same size and type as the reference image is created, otherwise the result is a reference to the input image.

Options

The operation has no options.

Parameter

inputImage (ImagePlus): The input image. This image will be the result if it is not null.
referenceImage (ImagePlus): The reference image is used to determine the size and type of the new image that is created when the result image is null.

Results

The result is either a reference to the input image or a new image of the same size and type as the reference image.