@Namespace(value="FlyCapture2") @NoOffset @Properties(inherit=FlyCapture2.class) public class ImageStatistics extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
BLUE
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
GREEN
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
GREY
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
HUE
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
LIGHTNESS
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
NUM_STATISTICS_CHANNELS
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
RED
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
static int |
SATURATION
enum FlyCapture2::ImageStatistics::StatisticsChannel
|
Constructor and Description |
---|
ImageStatistics()
Default constructor.
|
ImageStatistics(ImageStatistics other)
Copy constructor.
|
ImageStatistics(long size)
Native array allocator.
|
ImageStatistics(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Error |
DisableAll()
Disable all channels.
|
Error |
EnableAll()
Enable all channels.
|
Error |
EnableGreyOnly()
Enable only the grey channel.
|
Error |
EnableHSLOnly()
Enable only the HSL channels.
|
Error |
EnableRGBOnly()
Enable only the RGB channels.
|
Error |
GetChannelStatus(int channel,
boolean[] pEnabled) |
Error |
GetChannelStatus(int channel,
BoolPointer pEnabled)
Get the status of a statistics channel.
|
Error |
GetHistogram(int channel,
int[] ppHistogram) |
Error |
GetHistogram(int channel,
IntBuffer ppHistogram) |
Error |
GetHistogram(int channel,
IntPointer ppHistogram) |
Error |
GetHistogram(int channel,
PointerPointer ppHistogram)
Get the histogram for the image.
|
Error |
GetMean(int channel,
float[] pPixelValueMean) |
Error |
GetMean(int channel,
FloatBuffer pPixelValueMean) |
Error |
GetMean(int channel,
FloatPointer pPixelValueMean)
Get the mean of the image.
|
Error |
GetNumPixelValues(int channel,
int[] pNumPixelValues) |
Error |
GetNumPixelValues(int channel,
IntBuffer pNumPixelValues) |
Error |
GetNumPixelValues(int channel,
IntPointer pNumPixelValues)
Get the number of unique pixel values in the image.
|
Error |
GetPixelValueRange(int channel,
int[] pPixelValueMin,
int[] pPixelValueMax) |
Error |
GetPixelValueRange(int channel,
IntBuffer pPixelValueMin,
IntBuffer pPixelValueMax) |
Error |
GetPixelValueRange(int channel,
IntPointer pPixelValueMin,
IntPointer pPixelValueMax)
Get the range of a statistics channel.
|
ImageStatistics |
getPointer(long i) |
Error |
GetRange(int channel,
int[] pMin,
int[] pMax) |
Error |
GetRange(int channel,
IntBuffer pMin,
IntBuffer pMax) |
Error |
GetRange(int channel,
IntPointer pMin,
IntPointer pMax)
Get the range of a statistics channel.
|
Error |
GetStatistics(int channel) |
Error |
GetStatistics(int channel,
int[] pRangeMin,
int[] pRangeMax,
int[] pPixelValueMin,
int[] pPixelValueMax,
int[] pNumPixelValues,
float[] pPixelValueMean,
int[] ppHistogram) |
Error |
GetStatistics(int channel,
IntBuffer pRangeMin,
IntBuffer pRangeMax,
IntBuffer pPixelValueMin,
IntBuffer pPixelValueMax,
IntBuffer pNumPixelValues,
FloatBuffer pPixelValueMean,
IntBuffer ppHistogram) |
Error |
GetStatistics(int channel,
IntPointer pRangeMin,
IntPointer pRangeMax,
IntPointer pPixelValueMin,
IntPointer pPixelValueMax,
IntPointer pNumPixelValues,
FloatPointer pPixelValueMean,
IntPointer ppHistogram) |
Error |
GetStatistics(int channel,
IntPointer pRangeMin,
IntPointer pRangeMax,
IntPointer pPixelValueMin,
IntPointer pPixelValueMax,
IntPointer pNumPixelValues,
FloatPointer pPixelValueMean,
PointerPointer ppHistogram)
Get all statistics for the image.
|
ImageStatistics |
position(long position) |
ImageStatistics |
put(ImageStatistics other)
Assignment operator.
|
Error |
SetChannelStatus(int channel,
boolean enabled)
Set the status of a statistics channel.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int GREY
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int HUE
public static final int SATURATION
public static final int LIGHTNESS
public static final int NUM_STATISTICS_CHANNELS
public ImageStatistics(Pointer p)
Pointer(Pointer)
.public ImageStatistics(long size)
Pointer.position(long)
.public ImageStatistics()
public ImageStatistics(@Const @ByRef ImageStatistics other)
public ImageStatistics position(long position)
public ImageStatistics getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public ImageStatistics put(@Const @ByRef ImageStatistics other)
other
- The ImageStatistics object to copy from.@ByVal public Error EnableAll()
@ByVal public Error DisableAll()
@ByVal public Error EnableGreyOnly()
@ByVal public Error EnableRGBOnly()
@ByVal public Error EnableHSLOnly()
@ByVal public Error GetChannelStatus(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="bool*") BoolPointer pEnabled)
channel
- The statistics channel.pEnabled
- Whether the channel is enabled.SetChannelStatus()
@ByVal public Error GetChannelStatus(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="bool*") boolean[] pEnabled)
@ByVal public Error SetChannelStatus(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="bool") boolean enabled)
channel
- The statistics channel.enabled
- Whether the channel should be enabled.GetChannelStatus()
@ByVal public Error GetRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntPointer pMin, @Cast(value="unsigned int*") IntPointer pMax)
channel
- The statistics channel.pMin
- The minimum possible value.pMax
- The maximum possible value.@ByVal public Error GetRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntBuffer pMin, @Cast(value="unsigned int*") IntBuffer pMax)
@ByVal public Error GetRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") int[] pMin, @Cast(value="unsigned int*") int[] pMax)
@ByVal public Error GetPixelValueRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntPointer pPixelValueMin, @Cast(value="unsigned int*") IntPointer pPixelValueMax)
channel
- The statistics channel.pPixelValueMin
- The minimum pixel value.pPixelValueMax
- The maximum pixel value.@ByVal public Error GetPixelValueRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntBuffer pPixelValueMin, @Cast(value="unsigned int*") IntBuffer pPixelValueMax)
@ByVal public Error GetPixelValueRange(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") int[] pPixelValueMin, @Cast(value="unsigned int*") int[] pPixelValueMax)
@ByVal public Error GetNumPixelValues(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntPointer pNumPixelValues)
channel
- The statistics channel.pNumPixelValues
- The number of unique pixel values.@ByVal public Error GetNumPixelValues(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntBuffer pNumPixelValues)
@ByVal public Error GetNumPixelValues(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") int[] pNumPixelValues)
@ByVal public Error GetMean(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, FloatPointer pPixelValueMean)
channel
- The statistics channel.pPixelValueMean
- The mean of the image.@ByVal public Error GetMean(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, FloatBuffer pPixelValueMean)
@ByVal public Error GetMean(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, float[] pPixelValueMean)
@ByVal public Error GetHistogram(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="int**") PointerPointer ppHistogram)
channel
- The statistics channel.ppHistogram
- Pointer to an array containing the histogram.@ByVal public Error GetHistogram(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @ByPtrPtr IntPointer ppHistogram)
@ByVal public Error GetHistogram(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @ByPtrPtr IntBuffer ppHistogram)
@ByVal public Error GetHistogram(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @ByPtrPtr int[] ppHistogram)
@ByVal public Error GetStatistics(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntPointer pRangeMin, @Cast(value="unsigned int*") IntPointer pRangeMax, @Cast(value="unsigned int*") IntPointer pPixelValueMin, @Cast(value="unsigned int*") IntPointer pPixelValueMax, @Cast(value="unsigned int*") IntPointer pNumPixelValues, FloatPointer pPixelValueMean, @Cast(value="int**") PointerPointer ppHistogram)
channel
- The statistics channel.pRangeMin
- The minimum possible value.pRangeMax
- The maximum possible value.pPixelValueMin
- The minimum pixel value.pPixelValueMax
- The maximum pixel value.pNumPixelValues
- The number of unique pixel values.pPixelValueMean
- The mean of the image.ppHistogram
- Pointer to an array containing the histogram.@ByVal public Error GetStatistics(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel)
@ByVal public Error GetStatistics(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntPointer pRangeMin, @Cast(value="unsigned int*") IntPointer pRangeMax, @Cast(value="unsigned int*") IntPointer pPixelValueMin, @Cast(value="unsigned int*") IntPointer pPixelValueMax, @Cast(value="unsigned int*") IntPointer pNumPixelValues, FloatPointer pPixelValueMean, @ByPtrPtr IntPointer ppHistogram)
@ByVal public Error GetStatistics(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") IntBuffer pRangeMin, @Cast(value="unsigned int*") IntBuffer pRangeMax, @Cast(value="unsigned int*") IntBuffer pPixelValueMin, @Cast(value="unsigned int*") IntBuffer pPixelValueMax, @Cast(value="unsigned int*") IntBuffer pNumPixelValues, FloatBuffer pPixelValueMean, @ByPtrPtr IntBuffer ppHistogram)
@ByVal public Error GetStatistics(@Cast(value="FlyCapture2::ImageStatistics::StatisticsChannel") int channel, @Cast(value="unsigned int*") int[] pRangeMin, @Cast(value="unsigned int*") int[] pRangeMax, @Cast(value="unsigned int*") int[] pPixelValueMin, @Cast(value="unsigned int*") int[] pPixelValueMax, @Cast(value="unsigned int*") int[] pNumPixelValues, float[] pPixelValueMean, @ByPtrPtr int[] ppHistogram)
Copyright © 2023. All rights reserved.