chalk

KisGenericLabHistogramProducer Class Reference

#include <kis_basic_histogram_producers.h>

Inherits KisBasicHistogramProducer.

Public Member Functions

virtual void addRegionToBin (TQ_UINT8 *pixels, TQ_UINT8 *selectionMask, TQ_UINT32 nPixels, KisColorSpace *colorSpace)
 
virtual TQString positionToString (double pos) const
 
virtual double maximalZoom () const
 
virtual TQValueVector< KisChannelInfo * > channels ()
 

Protected Attributes

TQValueVector< KisChannelInfo * > m_channelsList
 

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.

Constructor & Destructor Documentation

◆ KisGenericLabHistogramProducer()

KisGenericLabHistogramProducer::KisGenericLabHistogramProducer ( )

Definition at line 410 of file kis_basic_histogram_producers.cpp.

◆ ~KisGenericLabHistogramProducer()

KisGenericLabHistogramProducer::~KisGenericLabHistogramProducer ( )
virtual

Definition at line 424 of file kis_basic_histogram_producers.cpp.

Member Function Documentation

◆ addRegionToBin()

void KisGenericLabHistogramProducer::addRegionToBin ( TQ_UINT8 *  pixels,
TQ_UINT8 *  selectionMask,
TQ_UINT32  nPixels,
KisColorSpace *  colorSpace 
)
virtual

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

Parameters
pixelsA pointer an array of pixeldata in the given colorspace
selectionMaska 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.
nPixelsThe number of pixels
colorSpacethe colorspace that can decode the pixel data.

Implements KisHistogramProducer.

Definition at line 444 of file kis_basic_histogram_producers.cpp.

◆ channels()

TQValueVector< KisChannelInfo * > KisGenericLabHistogramProducer::channels ( )
virtual

Implements KisHistogramProducer.

Definition at line 431 of file kis_basic_histogram_producers.cpp.

◆ maximalZoom()

double KisGenericLabHistogramProducer::maximalZoom ( ) const
virtual

Implements KisHistogramProducer.

Definition at line 439 of file kis_basic_histogram_producers.cpp.

◆ positionToString()

TQString KisGenericLabHistogramProducer::positionToString ( double  pos) const
virtual

Implements KisHistogramProducer.

Definition at line 435 of file kis_basic_histogram_producers.cpp.

Member Data Documentation

◆ m_channelsList

TQValueVector<KisChannelInfo *> KisGenericLabHistogramProducer::m_channelsList
protected

Definition at line 180 of file kis_basic_histogram_producers.h.


The documentation for this class was generated from the following files: