MPSImageHistogramInfo(3) MetalPerformanceShaders.framework MPSImageHistogramInfo(3)
NAME
MPSImageHistogramInfo - Specifies information to compute the histogram for channels of an image.
SYNOPSIS
#include <MPSImageHistogram.h>
Public Attributes
NSUInteger numberOfHistogramEntries
BOOL histogramForAlpha
vector_float4 minPixelValue
vector_float4 maxPixelValue
Detailed Description
Specifies information to compute the histogram for channels of an image.
MPSImageHistogram.h MetalPerformanceShaders.framework
Copyright:
Copyright (c) 2015 Apple Inc. All rights reserved. MetalPerformanceShaders histogram filters
Member Data Documentation
BOOL MPSImageHistogramInfo::histogramForAlpha
Specifies whether the histogram for the alpha channel should be computed or not.
vector_float4 MPSImageHistogramInfo::maxPixelValue
Specifies the maximum pixel value. Any pixel value greater than this will be clipped to this value (for the purposes of histogram
calculation), and assigned to the last histogram entry. This maximum value is applied to each of the four channels separately.
vector_float4 MPSImageHistogramInfo::minPixelValue
Specifies the minimum pixel value. Any pixel value less than this will be clipped to this value (for the purposes of histogram
calculation), and assigned to the first histogram entry. This minimum value is applied to each of the four channels separately.
NSUInteger MPSImageHistogramInfo::numberOfHistogramEntries
Specifies the number of histogram entries, or 'bins' for each channel. For example, if you want 256 histogram bins then
numberOfHistogramEntries must be set to 256. The value stored in each histogram bin is a 32-bit unsigned integer. The size of the histogram
buffer in which these bins will be stored should be >= numberOfHistogramEntries * sizeof(uint32_t) * number of channels in the image.
numberOfHistogramEntries must be a power of 2 and is a minimum of 256 bins.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageHistogramInfo(3)