ROPO
|
#include "rave_fmi_image.h"
#include "raveobject_hashtable.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include <string.h>
Go to the source code of this file.
Classes | |
struct | _RaveFmiImage_t |
Variables | |
RaveCoreObjectType | RaveFmiImage_TYPE |
rave object wrapper for the fmi_image. This object supports #RAVE_OBJECT_CLONE.
Definition in file rave_fmi_image.c.
int RaveFmiImage_addAttribute | ( | RaveFmiImage_t * | self, |
RaveAttribute_t * | attribute ) |
Adds a rave attribute to the image.
[in] | self | - self |
[in] | attribute | - the attribute |
Definition at line 587 of file rave_fmi_image.c.
void RaveFmiImage_fill | ( | RaveFmiImage_t * | self, |
unsigned char | v ) |
Fills the image with the provided value.
[in] | self | - self |
[in] | v | - the pixel value to set for all pixels |
Definition at line 480 of file rave_fmi_image.c.
void RaveFmiImage_fillOriginal | ( | RaveFmiImage_t * | self, |
double | v ) |
Fills the original image with the provided value.
[in] | self | - self |
[in] | v | - the pixel value to set for all pixels |
Definition at line 494 of file rave_fmi_image.c.
RaveFmiImage_t * RaveFmiImage_fromPolarScan | ( | PolarScan_t * | scan, |
const char * | quantity ) |
Creates a fmi image from a polar scan
[in] | scan | - the polar scan |
[in] | quantity | - the quantity to use for building the fmi image (NULL == default parameter) |
Definition at line 779 of file rave_fmi_image.c.
RaveFmiImage_t * RaveFmiImage_fromPolarVolume | ( | PolarVolume_t * | volume, |
int | scannr, | ||
const char * | quantity ) |
Creates a fmi image from a specific scan in a polar volume
[in] | volume | - the polar volume |
[in] | scannr | - the polar scan in the volume |
[in] | quantity | - the quantity to use for building the fmi image (NULL == default parameter) |
Definition at line 738 of file rave_fmi_image.c.
RaveFmiImage_t * RaveFmiImage_fromRave | ( | RaveCoreObject * | object, |
const char * | quantity ) |
Creates a fmi image from a rave object. Currently supported object types are. PolarVolume_t, PolarScan_t and RaveField_t. If it is a polar volume scan 0 is assumed.
[in] | object | - the object to generate an fmi image from |
[in] | quantity | - the specific quantity (NULL == default parameter if applicable) |
Definition at line 829 of file rave_fmi_image.c.
RaveFmiImage_t * RaveFmiImage_fromRaveField | ( | RaveField_t * | field | ) |
Creates a fmi image from a rave field
[in] | field | - the rave field |
Definition at line 805 of file rave_fmi_image.c.
RaveAttribute_t * RaveFmiImage_getAttribute | ( | RaveFmiImage_t * | self, |
const char * | name ) |
Returns the rave attribute that is named accordingly.
[in] | self | - self |
[in] | name | - the name of the attribute |
Definition at line 615 of file rave_fmi_image.c.
RaveList_t * RaveFmiImage_getAttributeNames | ( | RaveFmiImage_t * | self | ) |
Returns a list of attribute names. Release with @ref #RaveList_freeAndDestroy.
[in] | self | - self |
Definition at line 625 of file rave_fmi_image.c.
double RaveFmiImage_getGain | ( | RaveFmiImage_t * | self | ) |
Returns the gain for the data in the image Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
Definition at line 637 of file rave_fmi_image.c.
FmiImage * RaveFmiImage_getImage | ( | RaveFmiImage_t * | self | ) |
Returns the internal FmiImage.
[in] | self | - self |
Definition at line 508 of file rave_fmi_image.c.
double RaveFmiImage_getNodata | ( | RaveFmiImage_t * | self | ) |
Returns the nodata for the data in the image
[in] | self | - self |
Definition at line 661 of file rave_fmi_image.c.
double RaveFmiImage_getOffset | ( | RaveFmiImage_t * | self | ) |
Returns the offset for the data in the image. Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
Definition at line 649 of file rave_fmi_image.c.
double RaveFmiImage_getOriginalGain | ( | RaveFmiImage_t * | self | ) |
Returns the original (when converted from rave object) gain for the data in the image Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
Definition at line 685 of file rave_fmi_image.c.
double RaveFmiImage_getOriginalNodata | ( | RaveFmiImage_t * | self | ) |
Returns the original (when converted from rave object) nodata for the data in the image
[in] | self | - self |
Definition at line 709 of file rave_fmi_image.c.
double RaveFmiImage_getOriginalOffset | ( | RaveFmiImage_t * | self | ) |
Returns the original (when converted from rave object) offset for the data in the image. Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
Definition at line 697 of file rave_fmi_image.c.
double RaveFmiImage_getOriginalUndetect | ( | RaveFmiImage_t * | self | ) |
Returns the original (when converted from rave object)undetect for the data in the image.
[in] | self | - self |
Definition at line 721 of file rave_fmi_image.c.
double RaveFmiImage_getUndetect | ( | RaveFmiImage_t * | self | ) |
Returns the undetect for the data in the image.
[in] | self | - self |
Definition at line 673 of file rave_fmi_image.c.
int RaveFmiImage_initialize | ( | RaveFmiImage_t * | self, |
int | width, | ||
int | height ) |
Initializes the rave image with the specific width and height.
[in] | self | - self |
[in] | width | - width |
[in] | height | - height |
Definition at line 459 of file rave_fmi_image.c.
RaveFmiImage_t * RaveFmiImage_new | ( | int | width, |
int | height ) |
Creates a rave fmi image with specified dimension
[in] | width | - the width |
[in] | height | - the height |
Definition at line 727 of file rave_fmi_image.c.
void RaveFmiImage_setGain | ( | RaveFmiImage_t * | self, |
double | gain ) |
Sets the gain for the data in the image. Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
[in] | gain | - the gain |
Definition at line 631 of file rave_fmi_image.c.
void RaveFmiImage_setNodata | ( | RaveFmiImage_t * | self, |
double | v ) |
Sets the nodata for the data in the image.
[in] | self | - self |
[in] | v | - the nodata value |
Definition at line 655 of file rave_fmi_image.c.
void RaveFmiImage_setOffset | ( | RaveFmiImage_t * | self, |
double | offset ) |
Sets the gain for the data in the image Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
[in] | offset | - the offset |
Definition at line 643 of file rave_fmi_image.c.
void RaveFmiImage_setOriginalGain | ( | RaveFmiImage_t * | self, |
double | gain ) |
Sets the original (when converted from rave object) gain for the data in the image. Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
[in] | gain | - the gain |
Definition at line 679 of file rave_fmi_image.c.
void RaveFmiImage_setOriginalNodata | ( | RaveFmiImage_t * | self, |
double | v ) |
Sets the original (when converted from rave object) nodata for the data in the image.
[in] | self | - self |
[in] | v | - the nodata value |
Definition at line 703 of file rave_fmi_image.c.
void RaveFmiImage_setOriginalOffset | ( | RaveFmiImage_t * | self, |
double | offset ) |
Sets the original (when converted from rave object) gain for the data in the image Data stored to actual value is retrieved by offset + value * gain.
[in] | self | - self |
[in] | offset | - the offset |
Definition at line 691 of file rave_fmi_image.c.
void RaveFmiImage_setOriginalUndetect | ( | RaveFmiImage_t * | self, |
double | v ) |
Sets the original (when converted from rave object)undetect for the data in the image
[in] | self | - self |
[in] | v | - the undetect value |
Definition at line 715 of file rave_fmi_image.c.
void RaveFmiImage_setUndetect | ( | RaveFmiImage_t * | self, |
double | v ) |
Sets the undetect for the data in the image
[in] | self | - self |
[in] | v | - the undetect value |
Definition at line 667 of file rave_fmi_image.c.
PolarScan_t * RaveFmiImage_toPolarScan | ( | RaveFmiImage_t * | self, |
const char * | quantity, | ||
int | datatype ) |
Creates a polar scan from a fmi image
[in] | self | - self |
[in] | quantity | - the quantity to be set for the parameters (may be NULL) |
[in] | datatype | - how the data field should be defined. 0 = same as when created, 1 = force unsigned char and use data from 8 bit array, 2 = force unsigned char but use data from original data array |
Definition at line 514 of file rave_fmi_image.c.
RaveField_t * RaveFmiImage_toRaveField | ( | RaveFmiImage_t * | self, |
int | datatype ) |
Creates a rave field from a fmi image
[in] | self | - self |
[in] | datatype | - how the data field should be defined. 0 = same as when created, 1 = force unsigned char and use data from 8 bit array, 2 = force unsigned char but use data from original data array |
Definition at line 550 of file rave_fmi_image.c.
RaveCoreObjectType RaveFmiImage_TYPE |
Type definition to use when creating a rave object.
Definition at line 845 of file rave_fmi_image.c.