CTL  0.6.1
Computed Tomography Library
Public Member Functions | Public Attributes | List of all members
CTL::ProjectionData::Dimensions Struct Reference

Struct that holds the dimensions of a ProjectionData object. More...

#include <projectiondata.h>

Public Member Functions

 Dimensions (uint nbChannels, uint nbRows, uint nbModules, uint nbViews)
 
 Dimensions (const SingleViewData::Dimensions &viewDim, uint nbViews)
 
bool operator== (const Dimensions &other) const
 
bool operator!= (const Dimensions &other) const
 
std::string info () const
 
size_t totalNbElements () const
 

Public Attributes

uint nbChannels
 Number of channels in each module.
 
uint nbRows
 Number of rows in each module.
 
uint nbModules
 Number of modules.
 
uint nbViews
 Number of views.
 

Detailed Description

Struct that holds the dimensions of a ProjectionData object.

This contains the number of views (nbViews), the number of modules in each view (nbModules) and the dimensions of individual modules, namely module width (nbChannels) and module height.

Member Function Documentation

◆ info()

std::string CTL::ProjectionData::Dimensions::info ( ) const

Returns a string containing the dimension values, joined by " x ".

◆ operator!=()

bool CTL::ProjectionData::Dimensions::operator!= ( const Dimensions other) const

Returns true if at least one dimensions of other is different from the value in this instance.

◆ operator==()

bool CTL::ProjectionData::Dimensions::operator== ( const Dimensions other) const

Returns true if all three dimensions of other are equal to those of this instance.

◆ totalNbElements()

size_t CTL::ProjectionData::Dimensions::totalNbElements ( ) const

Returns the total number of elements for data with this dimensions.


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