Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::ChannelStatistics Class Reference
Collaboration diagram for Magick::ChannelStatistics:

Public Member Functions

 ChannelStatistics (const ChannelStatistics &channelStatistics_)
 
double area () const
 
PixelChannel channel (void) const
 
size_t depth () const
 
double entropy () const
 
bool isValid () const
 
double kurtosis () const
 
double maxima () const
 
double mean () const
 
double minima () const
 
double skewness () const
 
double standardDeviation () const
 
double sum () const
 
double sumCubed () const
 
double sumFourthPower () const
 
double sumSquared () const
 
double variance () const
 
 ChannelStatistics (const PixelChannel channel_, const MagickCore::ChannelStatistics *channelStatistics_)
 

Private Attributes

PixelChannel _channel
 
double _area
 
size_t _depth
 
double _entropy
 
double _kurtosis
 
double _maxima
 
double _mean
 
double _minima
 
double _skewness
 
double _standardDeviation
 
double _sum
 
double _sumCubed
 
double _sumFourthPower
 
double _sumSquared
 
double _variance
 

Detailed Description

Definition at line 133 of file Statistic.h.

Constructor & Destructor Documentation

◆ ChannelStatistics() [1/3]

Magick::ChannelStatistics::ChannelStatistics ( void  )

Definition at line 280 of file Statistic.cpp.

281 : _channel(SyncPixelChannel),
282 _area(0.0),
283 _depth(0.0),
284 _entropy(0.0),
285 _kurtosis(0.0),
286 _maxima(0.0),
287 _mean(0.0),
288 _minima(0.0),
289 _skewness(0.0),
290 _standardDeviation(0.0),
291 _sum(0.0),
292 _sumCubed(0.0),
293 _sumFourthPower(0.0),
294 _sumSquared(0.0),
295 _variance(0.0)
296{
297}

◆ ChannelStatistics() [2/3]

Magick::ChannelStatistics::ChannelStatistics ( const ChannelStatistics channelStatistics_)

Definition at line 299 of file Statistic.cpp.

301 : _channel(channelStatistics_._channel),
302 _area(channelStatistics_._area),
303 _depth(channelStatistics_._depth),
304 _entropy(channelStatistics_._entropy),
305 _kurtosis(channelStatistics_._kurtosis),
306 _maxima(channelStatistics_._maxima),
307 _mean(channelStatistics_._mean),
308 _minima(channelStatistics_._minima),
309 _skewness(channelStatistics_._skewness),
310 _standardDeviation(channelStatistics_._standardDeviation),
311 _sum(channelStatistics_._sum),
312 _sumCubed(channelStatistics_._sumCubed),
313 _sumFourthPower(channelStatistics_._sumFourthPower),
314 _sumSquared(channelStatistics_._sumSquared),
315 _variance(channelStatistics_._variance)
316{
317}

◆ ~ChannelStatistics()

Magick::ChannelStatistics::~ChannelStatistics ( void  )

Definition at line 319 of file Statistic.cpp.

320{
321}

◆ ChannelStatistics() [3/3]

Magick::ChannelStatistics::ChannelStatistics ( const PixelChannel  channel_,
const MagickCore::ChannelStatistics *  channelStatistics_ 
)

Definition at line 403 of file Statistic.cpp.

405 : _channel(channel_),
406 _area(channelStatistics_->area),
407 _depth(channelStatistics_->depth),
408 _entropy(channelStatistics_->entropy),
409 _kurtosis(channelStatistics_->kurtosis),
410 _maxima(channelStatistics_->maxima),
411 _mean(channelStatistics_->mean),
412 _minima(channelStatistics_->minima),
413 _skewness(channelStatistics_->skewness),
414 _standardDeviation(channelStatistics_->standard_deviation),
415 _sum(channelStatistics_->sum),
416 _sumCubed(channelStatistics_->sum_cubed),
417 _sumFourthPower(channelStatistics_->sum_fourth_power),
418 _sumSquared(channelStatistics_->sum_squared),
419 _variance(channelStatistics_->variance)
420{
421}

Member Function Documentation

◆ area()

double Magick::ChannelStatistics::area ( ) const

Definition at line 323 of file Statistic.cpp.

324{
325 return(_area);
326}

◆ channel()

Magick::PixelChannel Magick::ChannelStatistics::channel ( void  ) const

Definition at line 328 of file Statistic.cpp.

329{
330 return(_channel);
331}

◆ depth()

size_t Magick::ChannelStatistics::depth ( ) const

Definition at line 333 of file Statistic.cpp.

334{
335 return(_depth);
336}

◆ entropy()

double Magick::ChannelStatistics::entropy ( ) const

Definition at line 338 of file Statistic.cpp.

339{
340 return(_entropy);
341}

◆ isValid()

bool Magick::ChannelStatistics::isValid ( ) const

Definition at line 343 of file Statistic.cpp.

344{
345 return(_channel != SyncPixelChannel);
346}

◆ kurtosis()

double Magick::ChannelStatistics::kurtosis ( ) const

Definition at line 348 of file Statistic.cpp.

349{
350 return(_kurtosis);
351}

◆ maxima()

double Magick::ChannelStatistics::maxima ( ) const

Definition at line 353 of file Statistic.cpp.

354{
355 return(_maxima);
356}

◆ mean()

double Magick::ChannelStatistics::mean ( ) const

Definition at line 358 of file Statistic.cpp.

359{
360 return(_mean);
361}

◆ minima()

double Magick::ChannelStatistics::minima ( ) const

Definition at line 363 of file Statistic.cpp.

364{
365 return(_minima);
366}

◆ skewness()

double Magick::ChannelStatistics::skewness ( ) const

Definition at line 368 of file Statistic.cpp.

369{
370 return(_skewness);
371}

◆ standardDeviation()

double Magick::ChannelStatistics::standardDeviation ( ) const

Definition at line 373 of file Statistic.cpp.

374{
375 return(_standardDeviation);
376}

◆ sum()

double Magick::ChannelStatistics::sum ( ) const

Definition at line 378 of file Statistic.cpp.

379{
380 return(_sum);
381}

◆ sumCubed()

double Magick::ChannelStatistics::sumCubed ( ) const

Definition at line 383 of file Statistic.cpp.

384{
385 return(_sumCubed);
386}

◆ sumFourthPower()

double Magick::ChannelStatistics::sumFourthPower ( ) const

Definition at line 388 of file Statistic.cpp.

389{
390 return(_sumFourthPower);
391}

◆ sumSquared()

double Magick::ChannelStatistics::sumSquared ( ) const

Definition at line 393 of file Statistic.cpp.

394{
395 return(_sumSquared);
396}

◆ variance()

double Magick::ChannelStatistics::variance ( ) const

Definition at line 398 of file Statistic.cpp.

399{
400 return(_variance);
401}

Member Data Documentation

◆ _area

double Magick::ChannelStatistics::_area
private

Definition at line 203 of file Statistic.h.

◆ _channel

PixelChannel Magick::ChannelStatistics::_channel
private

Definition at line 202 of file Statistic.h.

◆ _depth

size_t Magick::ChannelStatistics::_depth
private

Definition at line 204 of file Statistic.h.

◆ _entropy

double Magick::ChannelStatistics::_entropy
private

Definition at line 205 of file Statistic.h.

◆ _kurtosis

double Magick::ChannelStatistics::_kurtosis
private

Definition at line 206 of file Statistic.h.

◆ _maxima

double Magick::ChannelStatistics::_maxima
private

Definition at line 207 of file Statistic.h.

◆ _mean

double Magick::ChannelStatistics::_mean
private

Definition at line 208 of file Statistic.h.

◆ _minima

double Magick::ChannelStatistics::_minima
private

Definition at line 209 of file Statistic.h.

◆ _skewness

double Magick::ChannelStatistics::_skewness
private

Definition at line 210 of file Statistic.h.

◆ _standardDeviation

double Magick::ChannelStatistics::_standardDeviation
private

Definition at line 211 of file Statistic.h.

◆ _sum

double Magick::ChannelStatistics::_sum
private

Definition at line 212 of file Statistic.h.

◆ _sumCubed

double Magick::ChannelStatistics::_sumCubed
private

Definition at line 213 of file Statistic.h.

◆ _sumFourthPower

double Magick::ChannelStatistics::_sumFourthPower
private

Definition at line 214 of file Statistic.h.

◆ _sumSquared

double Magick::ChannelStatistics::_sumSquared
private

Definition at line 215 of file Statistic.h.

◆ _variance

double Magick::ChannelStatistics::_variance
private

Definition at line 216 of file Statistic.h.


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