Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
|
Class: CIccTagSparseMatrixArray. More...
#include <IccTagBasic.h>
Public Member Functions | |
CIccTagSparseMatrixArray (const CIccTagSparseMatrixArray &ITSMA) | |
Name: CIccTagSparseMatrixArray::CIccTagSparseMatrixArray. | |
CIccTagSparseMatrixArray (int nNumMatrices=1, int nChannelsPerMatrix=4) | |
Name: CIccTagSparseMatrixArray::CIccTagSparseMatrixArray. | |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
Name: CIccTagSparseMatrixArray::Describe. | |
icUInt32Number | GetBytesPerMatrix () const |
icUInt32Number | GetChannelsPerMatrix () const |
virtual const icChar * | GetClassName () const |
icSparseMatrixType | GetMatrixType () const |
icUInt32Number | GetNumMatrices () const |
Returns the number of matrices in the array. | |
virtual icUInt32Number | GetNumValues () const |
bool | GetSparseMatrix (CIccSparseMatrix &mtx, int nIndex, bool bInitFromData=true) |
Name: CIccTagSparseMatrixArray::GetValues. | |
virtual icTagTypeSignature | GetType () const |
Function: GetType() | |
virtual bool | GetValues (icFloatNumber *DstVector, icUInt32Number nStart=0, icUInt32Number nVectorSize=1) const |
virtual bool | Interpolate (icFloatNumber *DstVector, icFloatNumber val, icUInt32Number nVectorSize=1, icFloatNumber *zeroVals=NULL) const |
Name: CIccTagSparseMatrixArray::Interpolate. | |
virtual bool | IsArrayType () |
virtual bool | IsMatrixArray () const |
virtual bool | IsNumArrayType () const |
virtual CIccTag * | NewCopy () |
CIccTagSparseMatrixArray & | operator= (const CIccTagSparseMatrixArray &ITSMA) |
Name: CIccTagSparseMatrixArray::operator=. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
Name: CIccTagSparseMatrixArray::Read. | |
bool | Reset (icUInt32Number nNumMatrices, icUInt16Number nChannelsPerMatrix) |
Name: CIccTagSparseMatrixArray::Reset. | |
void | SetMatrixType (icSparseMatrixType nType) |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
Name: CIccTagSparseMatrixArray::Validate. | |
virtual bool | ValuePos (icFloatNumber &DstPos, icFloatNumber val, bool &bNoZero) const |
Name: CIccTagSparseMatrixArray::ValuePos. | |
virtual bool | Write (CIccIO *pIO) |
Name: CIccTagSparseMatrixArray::Write. | |
virtual | ~CIccTagSparseMatrixArray () |
Name: CIccTagSparseMatrixArray::~CIccTagSparseMatrixArray. | |
![]() | |
CIccTag () | |
Name: CIccTag::CIccTag. | |
virtual void | DetachIO () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual IIccExtensionTag * | GetExtension () |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual bool | IsMBBType () |
virtual bool | IsSupported () |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. | |
virtual CIccTag * | NewCopy () const |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function. | |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
Function: Read(size, pIO) - Read tag from file. | |
virtual bool | ReadAll () |
Function: ReadAll() - Read All sub data for tag from file. | |
virtual | ~CIccTag () |
Name: CIccTag::CIccTag. | |
Protected Attributes | |
bool | m_bNonZeroPadding |
icUInt16Number | m_nChannelsPerMatrix |
icSparseMatrixType | m_nMatrixType |
icUInt32Number | m_nSize |
icUInt8Number * | m_RawData |
Additional Inherited Members | |
![]() | |
static CIccTag * | Create (icTagTypeSignature sig) |
Name: CIccTag::Create. | |
![]() | |
icUInt32Number | m_nReserved |
Class: CIccTagSparseMatrixArray.
Purpose: A template class for arrays of Fixed point numbers
Derived Tags: CIccTagS15Fixed16 and CIccTagU16Fixed16
Definition at line 830 of file IccTagBasic.h.
CIccTagSparseMatrixArray::CIccTagSparseMatrixArray | ( | int | nNumMatrices = 1, |
int | nChannelsPerMatrix = 4 ) |
Name: CIccTagSparseMatrixArray::CIccTagSparseMatrixArray.
Purpose: CIccTagSparseMatrixArray Constructor
Args: nSize = number of data entries
Definition at line 4398 of file IccTagBasic.cpp.
References icSparseMatrixFloat32.
CIccTagSparseMatrixArray::CIccTagSparseMatrixArray | ( | const CIccTagSparseMatrixArray & | ITSMA | ) |
Name: CIccTagSparseMatrixArray::CIccTagSparseMatrixArray.
Purpose: Copy Constructor
Args: ITFN = The CIccTagFixedNum object to be copied
Definition at line 4425 of file IccTagBasic.cpp.
References m_bNonZeroPadding, m_nChannelsPerMatrix, m_nMatrixType, m_nSize, and m_RawData.
|
virtual |
Name: CIccTagSparseMatrixArray::~CIccTagSparseMatrixArray.
Purpose: Destructor
Definition at line 4476 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagSparseMatrixArray::Describe.
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
Definition at line 4773 of file IccTagBasic.cpp.
References IIccSparseMatrixEntry::get(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetRowStart(), icSparseMatrixFloatNum, and CIccSparseMatrix::Rows().
|
inline |
Definition at line 852 of file IccTagBasic.h.
|
inline |
Definition at line 851 of file IccTagBasic.h.
Referenced by CIccArrayNamedColor::Validate().
|
inlinevirtual |
Reimplemented from CIccTag.
Reimplemented in CIccTagXmlSparseMatrixArray.
Definition at line 842 of file IccTagBasic.h.
|
inline |
Definition at line 857 of file IccTagBasic.h.
|
inline |
|
inlinevirtual |
Implements CIccTagNumArray.
Definition at line 866 of file IccTagBasic.h.
bool CIccTagSparseMatrixArray::GetSparseMatrix | ( | CIccSparseMatrix & | mtx, |
int | nIndex, | ||
bool | bInitFromData = true ) |
Name: CIccTagSparseMatrixArray::GetValues.
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Definition at line 4995 of file IccTagBasic.cpp.
References icSparseMatrixFloatNum, and CIccSparseMatrix::Reset().
|
inlinevirtual |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
Definition at line 841 of file IccTagBasic.h.
References icSigSparseMatrixArrayType.
|
virtual |
Implements CIccTagNumArray.
Definition at line 5009 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagSparseMatrixArray::Interpolate.
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Implements CIccTagNumArray.
Definition at line 5036 of file IccTagBasic.cpp.
References CIccSparseMatrix::Cols(), icSparseMatrixFloatNum, CIccSparseMatrix::Interp(), and CIccSparseMatrix::Rows().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 836 of file IccTagBasic.h.
CIccTagSparseMatrixArray & CIccTagSparseMatrixArray::operator= | ( | const CIccTagSparseMatrixArray & | ITSMA | ) |
Name: CIccTagSparseMatrixArray::operator=.
Purpose: Copy Operator
Args: ITFN = The CIccTagSparseMatrixArray object to be copied
Definition at line 4448 of file IccTagBasic.cpp.
References m_bNonZeroPadding, m_nChannelsPerMatrix, m_nSize, and m_RawData.
|
virtual |
Name: CIccTagSparseMatrixArray::Read.
Purpose: Read in the tag contents into a data block
Args: size - # of bytes in tag, pIO - IO object to read tag from
Return: true = successful, false = failure
Reimplemented from CIccTag.
Definition at line 4497 of file IccTagBasic.cpp.
References CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetNumEntries(), IIccSparseMatrixEntry::getPtr(), icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixFloatNum, icSparseMatrixUInt16, icSparseMatrixUInt8, CIccSparseMatrix::MaxEntries(), CIccIO::Read16(), CIccIO::Read32(), CIccIO::Read8(), CIccIO::ReadFloat16Float(), CIccIO::ReadFloat32Float(), CIccIO::ReadUInt16Float(), CIccIO::ReadUInt8Float(), CIccSparseMatrix::Reset(), CIccSparseMatrix::Rows(), and sig.
bool CIccTagSparseMatrixArray::Reset | ( | icUInt32Number | nNumMatrices, |
icUInt16Number | nChannelsPerMatrix ) |
Name: CIccTagSparseMatrixArray::Reset.
Purpose: Sets the size of the data array erasing all previous values
Args: nNumMatrices - number of matrices numChannelsPerMatrix - Equivalent number of output channels that determines the fixed block size for each matrix
Definition at line 4962 of file IccTagBasic.cpp.
References icRealloc().
|
inline |
Definition at line 858 of file IccTagBasic.h.
|
virtual |
Name: CIccTagSparseMatrixArray::Validate.
Purpose: Validates tag data
Args: sigPath - signature path of tag in profile to validate sReport - string to put validation report results profile - pointer to profile that contains the tag
Reimplemented from CIccTag.
Definition at line 4824 of file IccTagBasic.cpp.
References CIccSparseMatrix::Cols(), CIccSparseMatrix::GetNumEntries(), CIccInfo::GetSigPathName(), icGetFirstSigPathSig(), icGetSecondSigPathSig(), icGetSpaceSamples(), icIsSameColorSpaceType, icMaxStatus(), icMsgValidateCriticalError, icMsgValidateNonCompliant, icMsgValidateWarning, icSigSparseMatrixReflectanceData, icSigSpectralWhitePointTag, icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixFloatNum, icSparseMatrixUInt16, icSparseMatrixUInt8, icValidateCriticalError, icValidateNonCompliant, icValidateOK, icValidateWarning, CIccSparseMatrix::Init(), CIccSparseMatrix::IsValid(), CIccSparseMatrix::MaxEntries(), CIccSparseMatrix::Reset(), CIccSparseMatrix::Rows(), and CIccSparseMatrix::Union().
|
virtual |
Name: CIccTagSparseMatrixArray::ValuePos.
Purpose: Gets position of a value int the num array tag
Args: DstPos - position of val in array val - value to look for in array. bNoZero - flag indicating whether first entry is zero
Implements CIccTagNumArray.
Definition at line 5106 of file IccTagBasic.cpp.
|
virtual |
Name: CIccTagSparseMatrixArray::Write.
Purpose: Write the tag to a file
Args: pIO - The IO object to write tag to.
Return: true = succesful, false = failure
Reimplemented from CIccTag.
Definition at line 4695 of file IccTagBasic.cpp.
References CIccIO::Align32(), icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixFloatNum, icSparseMatrixUInt16, icSparseMatrixUInt8, CIccSparseMatrix::Reset(), sig, CIccIO::Write16(), CIccIO::Write32(), CIccIO::WriteFloat16Float(), CIccIO::WriteFloat32Float(), CIccIO::WriteUInt16Float(), and CIccIO::WriteUInt8Float().
|
protected |
Definition at line 882 of file IccTagBasic.h.
Referenced by CIccTagSparseMatrixArray(), and operator=().
|
protected |
Definition at line 880 of file IccTagBasic.h.
Referenced by CIccTagSparseMatrixArray(), and operator=().
|
protected |
Definition at line 877 of file IccTagBasic.h.
Referenced by CIccTagSparseMatrixArray().
|
protected |
Definition at line 879 of file IccTagBasic.h.
Referenced by CIccTagSparseMatrixArray(), and operator=().
|
protected |
Definition at line 878 of file IccTagBasic.h.
Referenced by CIccTagSparseMatrixArray(), and operator=().