|
STIRA
0.1
|
class to convert a grid of one data type to another More...
#include <GridConverter.h>
Public Member Functions | |
| GridConverter () | |
| constructor | |
Static Public Member Functions | |
| static ArrayGrid< int > * | ConvertToInt (ArrayGrid< bool > *pGrid) |
| converts a grid of booleans (0 or 1) to a grid of integers (0 or 255) More... | |
| static ArrayGrid< int > * | ConvertToInt (ArrayGrid< double > *pGrid) |
| converts a grid of doubles to a grid of integers More... | |
| static ArrayGrid< double > * | ConvertToDouble (ArrayGrid< bool > *pGrid, double factor=1.0) |
| converts a grid of booleans (0 or 1) to a grid of integers (0 or factor) More... | |
| static ArrayGrid< double > * | ConvertToDouble (ArrayGrid< int > *pGrid) |
| converts a grid of integers to a grid of doubles More... | |
class to convert a grid of one data type to another
|
static |
converts a grid of booleans (0 or 1) to a grid of integers (0 or factor)
| pGrid | input grid of booleans |
| factor | number to scale the boolean values with |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
converts a grid of integers to a grid of doubles
| pGrid | input grid of integers |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
converts a grid of booleans (0 or 1) to a grid of integers (0 or 255)
| pGrid | input grid of booleans |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
converts a grid of doubles to a grid of integers
| pGrid | input grid of doubles |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
1.8.11