open_iA 2024.7
Loading...
Searching...
No Matches
Classes | Functions
iAHistogramData.h File Reference
#include "iAPlotData.h"
#include "iacharts_export.h"
#include <QVector>
#include <vector>
#include <itkImage.h>
#include <itkImageRegionConstIterator.h>

Classes

class  iAHistogramData
 Computes and stores histogram data, which can be used in plots. More...
 
struct  iAImageStatistics
 simple data holder for image statistics More...
 

Functions

template<typename PixelT >
std::shared_ptr< iAHistogramDatacreateHistogramData (QString const &name, iAValueType xValueType, QVector< typename itk::Image< PixelT, 3 >::Pointer > const &imgs, size_t numBin, PixelT min, PixelT max)
 Specific histogram for a collection of binary images (one for each label) the created histogram has one bin per label.
 
iAcharts_API std::shared_ptr< iAHistogramDatacreateMappedHistogramData (QString const &name, iAPlotData::DataType const *data, size_t srcNumBin, double srcMinX, double srcMaxX, size_t targetNumBin, double targetMinX, double targetMaxX, iAPlotData::DataType const maxValue)
 Returns histogram with given data mapped from specified source to target range.
 

Function Documentation

◆ createHistogramData()

template<typename PixelT >
std::shared_ptr< iAHistogramData > createHistogramData ( QString const & name,
iAValueType xValueType,
QVector< typename itk::Image< PixelT, 3 >::Pointer > const & imgs,
size_t numBin,
PixelT min,
PixelT max )

Specific histogram for a collection of binary images (one for each label) the created histogram has one bin per label.

Todo
move to a separate file?

◆ createMappedHistogramData()

iAcharts_API std::shared_ptr< iAHistogramData > createMappedHistogramData ( QString const & name,
iAPlotData::DataType const * data,
size_t srcNumBin,
double srcMinX,
double srcMaxX,
size_t targetNumBin,
double targetMinX,
double targetMaxX,
iAPlotData::DataType const maxValue )

Returns histogram with given data mapped from specified source to target range.