radarlib 1.4.6
OdimH5v21::OdimQuality Class Reference

Generic OdimH5 v2.1 quality group. More...

#include <radarlib/odimh5v21_classes.hpp>

Public Member Functions

virtual H5::Group * getH5Object ()
 Get the HDF5 group associated to this object.
 
virtual bool existWhat ()
 Test is the WHAT attributes group exist.
 
virtual bool existWhere ()
 Test is the WHERE attributes group exist.
 
virtual bool existHow ()
 Test is the HOW attributes group exist.
 
virtual MetadataGroupgetWhat ()
 Get the WHAT attributes group.
 
virtual MetadataGroupgetWhere ()
 Get the WHERE attributes group.
 
virtual MetadataGroupgetHow ()
 Get the HOW attributes group.
 
virtual H5::AtomType getQualityType ()
 Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group.
 
virtual int getQualityWidth ()
 Get the width (cols num) of the matrix associated to this quality group.
 
virtual int getQualityHeight ()
 Get the height (rows num) of the matrix associated to this quality group.
 
virtual void getQualityDimension (int *height, int *width)
 Get height and width (rows and cols num) of the matrix associated to this quality group.
 
virtual void writeQuality (const void *buff, int width, int height, const H5::DataType &elemtype)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const char *buff, int width, int height)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const unsigned char *buff, int width, int height)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const unsigned short *buff, int width, int height)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const float *buff, int width, int height)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const DataMatrix< char > &matrix)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const DataMatrix< unsigned char > &matrix)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const DataMatrix< unsigned short > &matrix)
 Write data to the matrix associated to this 'quality' group.
 
virtual void writeQuality (const DataMatrix< float > &matrix)
 Write data to the matrix associated to this 'quality' group.
 
virtual void readQuality (void *buffer)
 Read data from the dataset of this 'quality' group.
 

Detailed Description

Generic OdimH5 v2.1 quality group.

All OdimH5 data can store one o more quality groups.
This class represents a generic OdimH5 quality group.
Generic data allow only to read/write attributes and matrices of binary data (RayMatrix).
Users are responsible for manipulating informations following OdimH5 specifications.

See also
OdimDataset, RayMatrix

Member Function Documentation

◆ getH5Object()

H5::Group * OdimH5v21::OdimQuality::getH5Object ( )
virtual

Get the HDF5 group associated to this object.

Get the HDF5 group associated to this object

Remarks
user must not delete this object
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ existWhat()

bool OdimH5v21::OdimQuality::existWhat ( )
virtual

Test is the WHAT attributes group exist.

Check if the WHAT attributes group of this object exist.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ existWhere()

bool OdimH5v21::OdimQuality::existWhere ( )
virtual

Test is the WHERE attributes group exist.

Check if the WHERE attributes group of this object exist.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ existHow()

bool OdimH5v21::OdimQuality::existHow ( )
virtual

Test is the HOW attributes group exist.

Check if the HOW attributes group of this object exist.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getWhat()

MetadataGroup * OdimH5v21::OdimQuality::getWhat ( )
virtual

Get the WHAT attributes group.

Get the WHAT attributes group of this object. If it does not exist it will be created

Remarks
user must not delete this object
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getWhere()

MetadataGroup * OdimH5v21::OdimQuality::getWhere ( )
virtual

Get the WHERE attributes group.

Get the WHERE attributes group of this object. If it does not exist it will be created

Remarks
user must not delete this object
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getHow()

MetadataGroup * OdimH5v21::OdimQuality::getHow ( )
virtual

Get the HOW attributes group.

Get the HOW attributes group of this object. If it does not exist it will be created

Remarks
user must not delete this object
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getQualityType()

H5::AtomType OdimH5v21::OdimQuality::getQualityType ( )
virtual

Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group.

Get the HDF5 atom type of the elements of the HDF5 dataset contained inside this 'quality' group.
If the HDF5 dataset is not present then NATIVE_OPAQUE will be returned. OdimH5 allow only atomic types: char, schar, uchar, short, ushort, int, uint, long, ulong, llong, ullong, float, double.

Exceptions
OdimH5Exceptionif an unexpected error occurs
OdimH5UnsupportedExceptionif the dataset type cannot be converted to an atomic type

◆ getQualityWidth()

int OdimH5v21::OdimQuality::getQualityWidth ( )
virtual

Get the width (cols num) of the matrix associated to this quality group.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getQualityHeight()

int OdimH5v21::OdimQuality::getQualityHeight ( )
virtual

Get the height (rows num) of the matrix associated to this quality group.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ getQualityDimension()

void OdimH5v21::OdimQuality::getQualityDimension ( int * height,
int * width )
virtual

Get height and width (rows and cols num) of the matrix associated to this quality group.

Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [1/9]

void OdimH5v21::OdimQuality::writeQuality ( const void * buff,
int width,
int height,
const H5::DataType & elemtype )
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the given buffer where each element has the given type.
The buffer must be a continuous memory array logically organized as a matrix divided in rows and cols.

The size of the buffer must be at least equal to (height * width * elemtype.getSize()). Otherwise a buffer overflow will occur.

Parameters
buffthe buffer containing the quality to write
widththe number of cols in the matrix
heightthe number of rows in the matrix
elemtypethe HDF5 datatype of the buffer's elements
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [2/9]

void OdimH5v21::OdimQuality::writeQuality ( const char * buff,
int width,
int height )
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the given 8 bit signed buffer

Parameters
buffthe buffer containing the data to write
widththe number of cols in the matrix
heightthe number of rows in the matrix
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [3/9]

void OdimH5v21::OdimQuality::writeQuality ( const unsigned char * buff,
int width,
int height )
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the given 8 bit unsigned buffer

Parameters
buffthe buffer containing the quality to write
widththe number of cols in the matrix
heightthe number of rows in the matrix
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [4/9]

void OdimH5v21::OdimQuality::writeQuality ( const unsigned short * buff,
int width,
int height )
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the given 16 bit unsigned char buffer

Parameters
buffthe buffer containing the quality to write
widththe number of cols in the matrix
heightthe number of rows in the matrix
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [5/9]

void OdimH5v21::OdimQuality::writeQuality ( const float * buff,
int width,
int height )
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the given 32 bit floating point buffer

Parameters
buffthe buffer containing the quality to write
widththe number of cols in the matrix
heightthe number of rows in the matrix
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [6/9]

void OdimH5v21::OdimQuality::writeQuality ( const DataMatrix< char > & matrix)
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.

Parameters
matrixthe matrix object containing the data
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [7/9]

void OdimH5v21::OdimQuality::writeQuality ( const DataMatrix< unsigned char > & matrix)
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.

Parameters
matrixthe matrix object containing the data
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [8/9]

void OdimH5v21::OdimQuality::writeQuality ( const DataMatrix< unsigned short > & matrix)
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the DataMatrix object.
The HDF5 dataset will be created using the size and type of the given matrix object.

Parameters
matrixthe matrix object containing the data
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ writeQuality() [9/9]

void OdimH5v21::OdimQuality::writeQuality ( const DataMatrix< float > & matrix)
virtual

Write data to the matrix associated to this 'quality' group.

Write data to the matrix associated to this 'quality' group from the DataMatrix object The HDF5 dataset will be created using the size and type of the given matrix object

Parameters
matrixthe matrix object containing the data
Exceptions
OdimH5Exceptionif an unexpected error occurs

◆ readQuality()

void OdimH5v21::OdimQuality::readQuality ( void * buffer)
virtual

Read data from the dataset of this 'quality' group.

Read data from the dataset of this 'quality' group into the given buffer.
The buffer must be large enough to store all elements in the HDF5 dataset.
The minimum size in byte is (getDataWidth() x getDataHeight() x getDataType().getSize()).

Parameters
bufferthe buffer to store the loaded data
Exceptions
OdimH5Exceptionif an unexpected error occurs

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