Class HistogramFromObjectsFactory
Object
HistogramFromObjectsFactory
Create a
Histogram
of the voxel intensity values in an image, pertaining to a region
defined by a ObjectMask
or a Mask
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Histogram
createFrom
(Channel channel, Optional<Mask> mask) Creates aHistogram
of all voxel intensity values inchannel
, or only those inmask
if it is dfined.static Histogram
createFrom
(Channel channel, Mask mask) static Histogram
createFrom
(Channel channel, ObjectCollection objects) static Histogram
createFrom
(Channel channel, ObjectMask object) static Histogram
createFrom
(VoxelsUntyped voxels, Optional<ObjectMask> object)
-
Method Details
-
createFrom
- Parameters:
voxels
- the intensity values for the entire scene.object
- if defined, only intensity values corresponding to thisobject
are retrieved, otherwise all voxels.- Returns:
- a newly created
Histogram
.
-
createFrom
- Parameters:
channel
- the channel with voxels.object
- only intensity values corresponding to thisobject
are retrieved.- Returns:
- a newly created
Histogram
.
-
createFrom
- Parameters:
channel
- the channel with voxels.objects
- only intensity values corresponding toobjects
are retrieved.- Returns:
- a newly created
Histogram
.
-
createFrom
Creates aHistogram
of all voxel intensity values inchannel
, or only those inmask
if it is dfined.- Parameters:
channel
- the channel with voxels.mask
- an optional mask, that restricts which voxels are considered.- Returns:
- a newly created
Histogram
. - Throws:
CreateException
- if the size of the channel and mask do not match, or a histogram cannot otherwise created.
-
createFrom
- Parameters:
channel
- the channel with voxels.mask
- the mask.- Returns:
- a newly created
Histogram
. - Throws:
CreateException
- if the size of the channel and mask do not match, or a histogram cannot otherwise created.
-