|
RAVE
|
Transformation routines. More...
Go to the source code of this file.
Classes | |
| struct | RaveTransform2D |
| Data structure when working with 2D projections. More... | |
| struct | RaveWeight2D |
| Weight for one item. More... | |
| struct | TransformWeight |
| All weights that should be used for calculating a value of a position. More... | |
| struct | RavePolarField |
| Defines one field in a volume. More... | |
| struct | RavePolarVolume |
| Defines one polar volume. More... | |
Functions | |
| double | get_array_item_2d (unsigned char *data, int x, int y, RaveDataType type, int stride_xsize) |
| Gets the value at position x,y from the data field. | |
| void | set_array_item_2d (unsigned char *data, int x, int y, double v, RaveDataType type, int stride_xsize) |
| Sets the value at position x,y in the data field. | |
| double | get_array_item_3d (RavePolarVolume *pvol, int e, int r, int a) |
| Gets a value from a polar volume. | |
| void | set_array_item_3d (RavePolarVolume *pvol, int e, int r, int a, double v) |
| Sets a value in a polar volume. | |
| TransformWeight * | init_tw (int noi) |
| Creates a TransformWeight struct with noi number of weights allocated. | |
| void | free_tw (TransformWeight *v) |
| Deallocates the whole TransformWeight struct v, including the weights allocated. | |
| TransformWeight * | get_nearest_weights_2d (int x, int y, UV here_s, RaveTransform2D *tw) |
| Gets the weight for the pixel closest to here_s and . | |
| TransformWeight * | get_bilinear_weights_2d (int x, int y, UV here_s, RaveTransform2D *tw) |
| Gets the bilinear weights for the pixel surrounding here_s. | |
| TransformWeight * | get_cubic_weights_2d (int x, int y, UV here_s, RaveTransform2D *tw) |
| Gets the cubic weights for the pixel surrounding here_s. | |
| TransformWeight * | get_cressman_weights_2d (int x, int y, UV here_s, RaveTransform2D *tw) |
| Gets the cressman weights for the pixel surrounding here_s. | |
| TransformWeight * | get_weights_2d (int x, int y, UV here_s, RaveTransform2D *tw) |
| Gets the appropriate weights for the current algorithm and position. | |
| double | compute_weights_2d (TransformWeight *tw) |
| Evaluates the weights specified in the TransformWeight struct, the weights will be normalized within the function by dividing the given weight with the total_wsum attribute in the TransformWeight struct. | |
Transformation routines.
| double compute_weights_2d | ( | TransformWeight * | tw | ) |
Evaluates the weights specified in the TransformWeight struct, the weights will be normalized within the function by dividing the given weight with the total_wsum attribute in the TransformWeight struct.
| [in] | tw | the transformation weight(s) |
| void free_tw | ( | TransformWeight * | v | ) |
Deallocates the whole TransformWeight struct v, including the weights allocated.
| [in] | v | the structure to be deallocated |
| double get_array_item_2d | ( | unsigned char * | data, |
| int | x, | ||
| int | y, | ||
| RaveDataType | type, | ||
| int | stride_xsize ) |
Gets the value at position x,y from the data field.
| [in] | data | the data array |
| [in] | x | the x position |
| [in] | y | the y position |
| [in] | type | the type of the data |
| [in] | stride_xsize | the stride |
| double get_array_item_3d | ( | RavePolarVolume * | pvol, |
| int | e, | ||
| int | r, | ||
| int | a ) |
Gets a value from a polar volume.
| [in] | pvol | the polar volume |
| [in] | e | the elevation |
| [in] | r | the range bin |
| [in] | a | the azimuth |
| TransformWeight * get_bilinear_weights_2d | ( | int | x, |
| int | y, | ||
| UV | here_s, | ||
| RaveTransform2D * | tw ) |
Gets the bilinear weights for the pixel surrounding here_s.
| [in] | x | position in the out projection (only used for debugging) |
| [in] | y | position in the out projection (only used for debugging) |
| [in] | here_s | the pixel |
| [in] | tw | the transformation structure |
| TransformWeight * get_cressman_weights_2d | ( | int | x, |
| int | y, | ||
| UV | here_s, | ||
| RaveTransform2D * | tw ) |
Gets the cressman weights for the pixel surrounding here_s.
| [in] | x | position in the out projection (only used for debugging) |
| [in] | y | position in the out projection (only used for debugging) |
| [in] | here_s | the pixel |
| [in] | tw | the transformation structure |
| TransformWeight * get_cubic_weights_2d | ( | int | x, |
| int | y, | ||
| UV | here_s, | ||
| RaveTransform2D * | tw ) |
Gets the cubic weights for the pixel surrounding here_s.
| [in] | x | position in the out projection (only used for debugging) |
| [in] | y | position in the out projection (only used for debugging) |
| [in] | here_s | the pixel |
| [in] | tw | the transformation structure |
| TransformWeight * get_nearest_weights_2d | ( | int | x, |
| int | y, | ||
| UV | here_s, | ||
| RaveTransform2D * | tw ) |
Gets the weight for the pixel closest to here_s and .
| [in] | x | position in the out projection (only used for debugging) |
| [in] | y | position in the out projection (only used for debugging) |
| [in] | here_s | the pixel |
| [in] | tw | the transformation structure |
| TransformWeight * get_weights_2d | ( | int | x, |
| int | y, | ||
| UV | here_s, | ||
| RaveTransform2D * | tw ) |
Gets the appropriate weights for the current algorithm and position.
| [in] | x | position in the out projection (only used for debugging) |
| [in] | y | position in the out projection (only used for debugging) |
| [in] | here_s | the pixel |
| [in] | tw | the transformation structure. |
| TransformWeight * init_tw | ( | int | noi | ) |
Creates a TransformWeight struct with noi number of weights allocated.
| [in] | noi | the number of weights to be allocated |
| void set_array_item_2d | ( | unsigned char * | data, |
| int | x, | ||
| int | y, | ||
| double | v, | ||
| RaveDataType | type, | ||
| int | stride_xsize ) |
Sets the value at position x,y in the data field.
| [in] | data | the data array |
| [in] | x | the x position |
| [in] | y | the y position |
| [in] | v | the value that will be converted into the specified type |
| [in] | type | the type of the data |
| [in] | stride_xsize | the stride |
| void set_array_item_3d | ( | RavePolarVolume * | pvol, |
| int | e, | ||
| int | r, | ||
| int | a, | ||
| double | v ) |
Sets a value in a polar volume.
| [in] | pvol | the polar volume |
| [in] | e | the elevation |
| [in] | r | the range bin |
| [in] | a | the azimuth |
| [in] | v | the value to be set |