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 HistogramcreateFrom(Channel channel, Optional<Mask> mask) Creates aHistogramof all voxel intensity values inchannel, or only those inmaskif it is dfined.static HistogramcreateFrom(Channel channel, Mask mask) static HistogramcreateFrom(Channel channel, ObjectCollection objects) static HistogramcreateFrom(Channel channel, ObjectMask object) static HistogramcreateFrom(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 thisobjectare retrieved, otherwise all voxels.- Returns:
- a newly created
Histogram.
-
createFrom
- Parameters:
channel- the channel with voxels.object- only intensity values corresponding to thisobjectare retrieved.- Returns:
- a newly created
Histogram.
-
createFrom
- Parameters:
channel- the channel with voxels.objects- only intensity values corresponding toobjectsare retrieved.- Returns:
- a newly created
Histogram.
-
createFrom
Creates aHistogramof all voxel intensity values inchannel, or only those inmaskif 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.
-