public class MaskThicknessMapWithOriginal extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
inverse
If true, inverts the threshold condition, i.e.
|
int |
threshold
Pixels with colors < threshold are considered background
|
Constructor and Description |
---|
MaskThicknessMapWithOriginal() |
Modifier and Type | Method and Description |
---|---|
ij.ImagePlus |
getResultImage() |
ij.ImagePlus |
trimOverhang(ij.ImagePlus original,
ij.ImagePlus thicknessMap)
Creates a copy of the thicknessMap, where "overhanging" pixels have been
removed.
|
public int threshold
public boolean inverse
public ij.ImagePlus trimOverhang(ij.ImagePlus original, ij.ImagePlus thicknessMap)
original
- The original, unprocessed 8-bit binary imagethicknessMap
- The 32-bit thickness map image produced from the
originalNullPointerException
- if original == null or thicknessMap == nullIllegalArgumentException
- if original.getBitDepth() != 8 or
thicknessMap.getBitDepth() != 32IllegalArgumentException
- if the dimensions of the images do not
matchpublic ij.ImagePlus getResultImage()
Copyright © 2015–2021 Fiji. All rights reserved.