|
ddt
0.1
|
#include <imageBuffer.hpp>
Public Member Functions | |
| ImageBuffer () | |
| virtual | ~ImageBuffer () |
| void | set_logger (ddt::DdtLogger *logger) |
| bool | LoadFile (const std::string &file_name, int position=0) |
| bool | LoadImageExtensionsAsOne (const std::string &file_name) |
| bool | LoadCPLImage (cpl_image *image) |
| bool | LoadActualConfigurationMap (std::string configuration_map_name) |
| bool | LoadConfigurationMaps (std::string configuration_map_source) |
| void * | get_ImageData () |
| cpl_image * | get_Image () |
| cpl_table * | get_BinaryTable () |
| FitsExtension * | get_FitsExtensionInfo (const int extension_number) |
| FitsExtension | get_PrimaryHDUInfo () const |
| int | get_ImageWidth () |
| int | get_ImageHeight () |
| int | get_NumberPlanes () |
| int | get_NumberExtensions () |
| int | get_NumberAxis () |
| cpl_wcs * | get_Wcs () |
| cpl_propertylist * | get_PropertyList () |
| cpl_apertures * | get_CircularObjects (double sigma) |
| double | get_PixelValue (int x_image, int y_image, int *is_rejected) |
| bool | get_AttachedToStream () |
| bool | get_LastSegment () |
| bool | get_FirstSegmentReceived () |
| void | AttachDataStream (std::string data_stream_id) |
| void | DetachDataStream (std::string data_stream_id) |
| signal_t * | ImageDataAvailableSignal () |
Protected Attributes | |
| ddt::DdtLogger * | logger |
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
| void ImageBuffer::AttachDataStream | ( | std::string | data_stream_id | ) |
Attach to a data stream
| data_stream_id | The ID of the data stream (could be the URI) |
| void ImageBuffer::DetachDataStream | ( | std::string | data_stream_id | ) |
Detach from a data stream
| data_stream_id | The ID of the stream to be disconnected |
| bool ImageBuffer::get_AttachedToStream | ( | ) |
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 | ( | double | sigma | ) |
Get a list of objects from a CPL image
| sigma | the detection level |
| bool ImageBuffer::get_FirstSegmentReceived | ( | ) |
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
| 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 | ( | ) |
Get the image height
| int ImageBuffer::get_ImageWidth | ( | ) |
Get the image width
| bool ImageBuffer::get_LastSegment | ( | ) |
Get the last segment flag, indicating if the current image is complete or the last segment of a segmented image
| int ImageBuffer::get_NumberAxis | ( | ) |
Get the number of axis in the image
| int ImageBuffer::get_NumberExtensions | ( | ) |
Get the number of extensions in the image
| int ImageBuffer::get_NumberPlanes | ( | ) |
Get the number of planes in the image
| double ImageBuffer::get_PixelValue | ( | int | x_image, |
| int | y_image, | ||
| int * | 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
| cpl_wcs * ImageBuffer::get_Wcs | ( | ) |
Get the WCS object
| signal_t * ImageBuffer::ImageDataAvailableSignal | ( | ) |
Provide the image data available signal
| bool ImageBuffer::LoadActualConfigurationMap | ( | 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 | ( | std::string | configuration_map_source | ) |
Load the configuration maps from the specified configuration map source.
| config_map_source | the source of the configuration maps |
| bool ImageBuffer::LoadCPLImage | ( | cpl_image * | image | ) |
Load a CPL image into the image buffer
| image | the CPL image to load |
| bool ImageBuffer::LoadFile | ( | const std::string & | file_name, |
| 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::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 |
| void ImageBuffer::set_logger | ( | ddt::DdtLogger * | logger | ) |
Set logger
| logger | The logger object |
|
protected |
The logger object