public class HistogramFromObjectsFactory extends Object
Histogram
of the voxel intensity values in an image, pertaining to a region
defined by a ObjectMask
or a Mask
.Modifier and Type | Method and Description |
---|---|
static Histogram |
createFrom(Channel channel,
Mask mask)
|
static Histogram |
createFrom(Channel channel,
ObjectCollection objects)
|
static Histogram |
createFrom(Channel channel,
ObjectMask object)
|
static Histogram |
createFrom(Channel channel,
Optional<Mask> mask)
Creates a
Histogram of all voxel intensity values in channel , or only
those in mask if it is dfined. |
static Histogram |
createFrom(VoxelsUntyped voxels,
Optional<ObjectMask> object)
|
public static Histogram createFrom(VoxelsUntyped voxels, Optional<ObjectMask> object)
voxels
- the intensity values for the entire scene.object
- if defined, only intensity values corresponding to this object
are
retrieved, otherwise all voxels.Histogram
.public static Histogram createFrom(Channel channel, ObjectMask object)
channel
- the channel with voxels.object
- only intensity values corresponding to this object
are retrieved.Histogram
.public static Histogram createFrom(Channel channel, ObjectCollection objects)
channel
- the channel with voxels.objects
- only intensity values corresponding to objects
are retrieved.Histogram
.public static Histogram createFrom(Channel channel, Optional<Mask> mask) throws CreateException
Histogram
of all voxel intensity values in channel
, or only
those in mask
if it is dfined.channel
- the channel with voxels.mask
- an optional mask, that restricts which voxels are considered.Histogram
.CreateException
- if the size of the channel and mask do not match, or a histogram
cannot otherwise created.public static Histogram createFrom(Channel channel, Mask mask) throws CreateException
channel
- the channel with voxels.mask
- the mask.Histogram
.CreateException
- if the size of the channel and mask do not match, or a histogram
cannot otherwise created.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.