|
ddt 1.2.1
|
#include <imageBuffer.hpp>
Public Member Functions | |
| void * | get_ImageData () |
Protected Attributes | |
| ddt::DdtLogger * | logger |
| ImageBuffer () | |
| virtual | ~ImageBuffer () |
| void | set_logger (ddt::DdtLogger *const in_logger) |
| bool | LoadFile (const std::string &file_name, const int position=0) |
| template<typename TPOINTER > | |
| bool | LoadPointer (TPOINTER *new_image_data, int nx, int ny) |
| bool | LoadFilePlane (const std::string &file_name, const int position=0, const int plane=0) |
| bool | LoadImageExtensionsAsOne (const std::string &file_name) |
| bool | LoadCPLImage (cpl_image *const image) |
| bool | LoadActualConfigurationMap (const std::string configuration_map_name) |
| bool | LoadConfigurationMaps (const std::string configuration_map_source) |
| bool | LoadInformationMaps (const std::string information_map_source) |
| std::shared_ptr< DdtEncDec > | get_MetadataSample () |
| cpl_image * | get_Image () |
| std::string | LastTimestampFromBuffer () const |
| cpl_table * | get_BinaryTable () |
| FitsExtension * | get_FitsExtensionInfo (const int extension_number) |
| FitsExtension | get_PrimaryHDUInfo () const |
| int | get_ImageWidth () const |
| int | get_ImageHeight () const |
| int | get_NumberPlanes () const |
| int | get_CurrentPlane () const |
| void | set_CurrentPlane (const int plane) |
| int | get_NumberExtensions () |
| int | get_NumberAxis () const |
| cpl_wcs * | get_Wcs () |
| cpl_propertylist * | get_PropertyList () |
| cpl_apertures * | get_CircularObjects (const double sigma) |
| double | get_PixelValue (const int x_image, const int y_image, int *const is_rejected) |
| bool | get_AttachedToStream () const |
| bool | get_LastSegment () const |
| bool | get_FirstSegmentReceived () const |
| bool | get_ConfigurationMap_Value (const double x, const double y, double *const value) const |
| std::list< std::string > | get_TextInformation (const double x, const double y) const |
| std::vector< int > | get_invalid_image_hdus () const |
| void | AttachDataStream (const std::string data_stream_id) |
| void | DetachDataStream (const std::string data_stream_id) |
| ddt::DdtStatistics * | get_DataStatistics () |
| void | set_RetrieveStatsFlag (bool value) |
| SignalT * | ImageDataAvailableSignal () |
| void | FreeResources () |
| static void | AddWCSItemsToPropList (cpl_propertylist *const prop_list, const std::shared_ptr< DdtEncDec > enc_dec) |
| static int32_t | BitsPerPixelFromDataType (const uint32_t data_type) |
Class to wrap the internal CPL image. This is created from the incoming data stream rsp. from a loaded file.
It offers access to image properties.
| ImageBuffer::ImageBuffer | ( | ) |
Constructor
|
virtual |
Destructor
|
static |
| void ImageBuffer::AttachDataStream | ( | const std::string | data_stream_id | ) |
Attach to a data stream
| data_stream_id | The ID of the data stream (could be the URI) |
|
static |
| void ImageBuffer::DetachDataStream | ( | const std::string | data_stream_id | ) |
Detach from a data stream
| data_stream_id | The ID of the stream to be disconnected |
| void ImageBuffer::FreeResources | ( | ) |
| bool ImageBuffer::get_AttachedToStream | ( | ) | const |
Get the attached to stream flag from the data acquisition
| cpl_table * ImageBuffer::get_BinaryTable | ( | ) |
Get the binary table data
| cpl_apertures * ImageBuffer::get_CircularObjects | ( | const double | sigma | ) |
Get a list of objects from a CPL image
| sigma | the detection level |
| bool ImageBuffer::get_ConfigurationMap_Value | ( | const double | x, |
| const double | y, | ||
| double *const | value ) const |
Get the value from a configuration map located at the specified x/y coordinate.
| x | the x coordinate |
| y | the y coordinate |
| value | the value at the specified coordinate, or 0.0 in case of error |
| int ImageBuffer::get_CurrentPlane | ( | ) | const |
Get the currently selected plane.
| ddt::DdtStatistics * ImageBuffer::get_DataStatistics | ( | ) |
Statistics from data subscriber
| bool ImageBuffer::get_FirstSegmentReceived | ( | ) | const |
Get the first segment received flag, indicating if the current image is the first segment of a segmented image
| FitsExtension * ImageBuffer::get_FitsExtensionInfo | ( | const int | extension_number | ) |
Get the information about one file extension
| extension_number | the extension number |
| cpl_image * ImageBuffer::get_Image | ( | ) |
Get the image data
| void * ddt::ImageBuffer::get_ImageData | ( | ) |
Get the image data
| int ImageBuffer::get_ImageHeight | ( | ) | const |
Get the image height
| int ImageBuffer::get_ImageWidth | ( | ) | const |
Get the image width
| std::vector< int > ImageBuffer::get_invalid_image_hdus | ( | ) | const |
Get the information about invalid image HDUs
| bool ImageBuffer::get_LastSegment | ( | ) | const |
Get the last segment flag, indicating if the current image is complete or the last segment of a segmented image
| std::shared_ptr< DdtEncDec > ImageBuffer::get_MetadataSample | ( | ) |
Get the metadata image samples
| int ImageBuffer::get_NumberAxis | ( | ) | const |
Get the number of axis in the image
| int ImageBuffer::get_NumberExtensions | ( | ) |
Get the number of extensions in the image
| int ImageBuffer::get_NumberPlanes | ( | ) | const |
Get the number of planes in the image
| double ImageBuffer::get_PixelValue | ( | const int | x_image, |
| const int | y_image, | ||
| int *const | is_rejected ) |
Get the pixel value from the internal image at a certain position
| x_image | the pixel x position |
| y_image | the pixel y position |
| is_rejected | set to 1 if the pixel is bad, 0 if good, or -1 on error |
| FitsExtension ImageBuffer::get_PrimaryHDUInfo | ( | ) | const |
Get the information about the primary HDU
| cpl_propertylist * ImageBuffer::get_PropertyList | ( | ) |
Get the property list
| std::list< std::string > ImageBuffer::get_TextInformation | ( | const double | x, |
| const double | y ) const |
Get the textual information contained in a configuration text info file related to a certain position
| x | the x coordinate |
| y | the y coordinate |
| cpl_wcs * ImageBuffer::get_Wcs | ( | ) |
Get the WCS object
| SignalT * ImageBuffer::ImageDataAvailableSignal | ( | ) |
Provide the image data available signal
| std::string ImageBuffer::LastTimestampFromBuffer | ( | ) | const |
Get last timestamp
| bool ImageBuffer::LoadActualConfigurationMap | ( | const std::string | configuration_map_name | ) |
Load the supplied configuration map as the actual configuration map.
| configuration_map_name | the name of the configuration map to be loaded. |
| bool ImageBuffer::LoadConfigurationMaps | ( | const std::string | configuration_map_source | ) |
Load the configuration maps from the specified configuration map source.
| configuration_map_source | the source of the configuration maps |
| bool ImageBuffer::LoadCPLImage | ( | cpl_image *const | image | ) |
Load a CPL image into the image buffer
| image | the CPL image to load |
| bool ImageBuffer::LoadFile | ( | const std::string & | file_name, |
| const int | position = 0 ) |
Load file. This function takes a CPL file (FITS) name and a position. The position indicates the HDU to use. The default HDU is the first (position 0).
| file_name | the FITS file name to load |
| position | the position indicating the HDU to use. This defaults to 0 (the first HDU). |
| bool ImageBuffer::LoadFilePlane | ( | const std::string & | file_name, |
| const int | position = 0, | ||
| const int | plane = 0 ) |
Load certain plain from a 3D cube CPL file.
| file_name | the FITS file name to load |
| position | the position indicating the HDU to use. This defaults to 0 (the first HDU). |
| plane | the plane of the HDU to load. This defaults to 0. |
| bool ImageBuffer::LoadImageExtensionsAsOne | ( | const std::string & | file_name | ) |
Load all image HDUs into one image. This function takes a CPL file (FITS) name.
| file_name | the FITS file name to load |
| bool ImageBuffer::LoadInformationMaps | ( | const std::string | information_map_source | ) |
Load the information maps from the specified information map source.
| information_map_source | the source of the information maps |
| template bool ImageBuffer::LoadPointer< int16_t > | ( | TPOINTER * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Load in-memory pointer to array. This function takes the pointer to a an array, and its x and y dimensions and loads it using CPL methods.
| new_image_data | pointer to an array of type TPOINTER |
| nx | first dimension size |
| ny | second dimension size |
| void ImageBuffer::set_CurrentPlane | ( | const int | plane | ) |
Set the plane to be loaded.
| plane | the plane number |
| void ImageBuffer::set_logger | ( | ddt::DdtLogger *const | in_logger | ) |
Set logger
| in_logger | A DDT logger object (no transfer of ownership). |
| void ImageBuffer::set_RetrieveStatsFlag | ( | bool | value | ) |
Enable or Disables subscriber statistics
| value | Flag to read statitics |
|
protected |
The logger object