krita

KisGenericLabHistogramProducer Class Reference

#include <kis_basic_histogram_producers.h>

Inheritance diagram for KisGenericLabHistogramProducer:

KisBasicHistogramProducer KisHistogramProducer List of all members.

Detailed Description

This is a Producer (with associated factory) that converts the pixels of the colorspace to L*a*b*, and then does its counting.

It isCompatibleWith all colorspaces

Definition at line 171 of file kis_basic_histogram_producers.h.


Public Member Functions

 KisGenericLabHistogramProducer ()
virtual ~KisGenericLabHistogramProducer ()
virtual void addRegionToBin (Q_UINT8 *pixels, Q_UINT8 *selectionMask, Q_UINT32 nPixels, KisColorSpace *colorSpace)
virtual QString positionToString (double pos) const
virtual double maximalZoom () const
virtual QValueVector< KisChannelInfo * > channels ()

Protected Attributes

QValueVector< KisChannelInfo * > m_channelsList

Member Function Documentation

void KisGenericLabHistogramProducer::addRegionToBin Q_UINT8 *  pixels,
Q_UINT8 *  selectionMask,
Q_UINT32  nPixels,
KisColorSpace colorSpace
[virtual]
 

Adds the values from the specified array of pixels to the bins -- does not reset anything.

Parameters:
pixels A pointer an array of pixeldata in the given colorspace
selectionMask a pointer to an array of bytes, where 0 is unselected and 1-255 is degree of selectedness. The array must be just as long as the array of pixels.
nPixels The number of pixels
colorSpace the colorspace that can decode the pixel data.

Implements KisHistogramProducer.

Definition at line 440 of file kis_basic_histogram_producers.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys