ddt  0.1
Public Types | Public Member Functions | Protected Attributes | List of all members
ddt::ImageHandling Class Reference

#include <imageHandling.hpp>

Public Types

enum  CutLevelType { AUTO, MINMAX, USERDEFINED }
 
enum  ColorScalingType { LINEAR_SCALE, LOG_SCALE, SQRT_SCALE }
 

Public Member Functions

 ImageHandling ()
 
virtual ~ImageHandling ()
 
void set_logger (ddt::DdtLogger *logger)
 
bool LoadFile (const std::string &file_name, int position=0)
 
bool LoadImageExtensionsAsOne (const std::string &file_name)
 
void set_CutLevelType (const CutLevelType cut_level_type)
 
CutLevelType get_CutLevelType ()
 
std::string get_CutLevelTypeStr ()
 
bool ApplyCutLevelsMinMax ()
 
bool ApplyCutLevelsAuto ()
 
bool ApplyCutLevelsManual (const double min_value, const double max_value)
 
bool ResetCutLevels ()
 
bool LoadColorMaps (std::string color_map_folder, std::string color_map_name="standard")
 
bool LoadActualColorMap (std::string color_map_name)
 
bool LoadActualConfigurationMap (std::string configuration_map_name)
 
bool LoadConfigurationMaps (std::string configuration_map_source)
 
int StoreActualImageAsBias (const std::string slot_name="")
 
int LoadFileAsBias (const std::string file_name)
 
bool LoadFileAsBiasInSlot (const std::string file_name, const int slot)
 
std::string GetBiasSlotName (const int slot)
 
bool GetBiasEnabled () const
 
void EnableBias (const bool enable_bias)
 
void ApplyBias (const int slot)
 
int GetCurrentSelectedBiasSlot () const
 
void ClearAllBiasImages ()
 
void ClearSelectedBiasImage (const int slot)
 
void DisplaySelectedBiasImage (const int slot)
 
void set_RotateFlag (const bool rot_flag)
 
bool get_RotateFlag ()
 
void set_FlipXFlag (const bool flip_flag)
 
bool get_FlipXFlag ()
 
void set_FlipYFlag (const bool flip_flag)
 
bool get_FlipYFlag ()
 
void * get_ImageData ()
 
cpl_image * get_Image ()
 
cpl_table * get_BinaryTable ()
 
int get_ImageWidth ()
 
int get_ImageHeight ()
 
int get_NumberExtensions ()
 
int get_NumberAxis () const
 
bool get_LastSegment () const
 
FitsExtensionget_FitsExtensionInfo (const int extension_number)
 
FitsExtension get_PrimaryHDUInfo () const
 
void set_CutLevelMin (const double min_value)
 
void set_CutLevelMax (const double max_value)
 
double get_CutLevelMin ()
 
double get_CutLevelMax ()
 
double get_ImagePixelMin ()
 
double get_ImagePixelMax ()
 
std::list< std::string > get_ColorMaps ()
 
ddt::colorMap_tget_ActualColorMap ()
 
ddt::colorMapARGB_tget_ActualColorMapARGB ()
 
std::string get_ActualColorMapName ()
 
ddt::scalingLut_tget_ScalingLut ()
 
ddt::scalingLut_tget_LinearScalingLut ()
 
ddt::scalingLut_tget_LogarithmicScalingLut ()
 
ddt::scalingLut_tget_SqrtScalingLut ()
 
ColorScalingType get_ColorScalingType ()
 
void set_ColorScalingTypeLinear ()
 
void set_ColorScalingTypeLogarithmic ()
 
void set_ColorScalingTypeSquareRoot ()
 
void set_ColorScalingType (ColorScalingType scaling_type)
 
std::string get_ColorScalingTypeStr ()
 
double ImagePixelFromImage (const double x_image, double y_image)
 
double ImagePixelFromCanvas (const double x_canvas, const double y_canvas, double *x_image, double *y_image)
 
void ConvertCanvasToImage (const double x_canvas, const double y_canvas, double *x_image, double *y_image)
 
void ConvertImageToCanvas (const double x_image, const double y_image, double *x_canvas, double *y_canvas)
 
bool WorldCoordinatesDegreesFromImage (const double x_image, const double y_image, double *alpha, double *delta)
 
bool WorldCoordinatesDegreesFromCanvas (const double x_canvas, const double y_canvas, double *alpha, double *delta)
 
CplStatisticsGetStatisticsCplImageWindow (int llx, int lly, int urx, int ury)
 
bool get_AttachedToStream ()
 
bool ReprossImage ()
 
void GetHistogramFromImage (int min_value, int max_value, std::vector< int > &distribution)
 
void GetHistogramBinsFromImage (int min_value, int max_value, std::vector< int > &distribution)
 
void GetCutValuesPercentageFromImage (const double percentage, double *min_value, double *max_value)
 
void AttachDataStream (std::string data_stream_id)
 
void DetachDataStream (std::string data_stream_id)
 
cpl_apertures * GetCircularObjects (double sigma)
 
bool GetObjectCentroidPos (cpl_apertures *apertures, double x_image, double y_image, double *x_centroid, double *y_centroid)
 
bool GetObjectInformation (double x_image, double y_image, int size, double *x_axis_angle, double *background, double *peak_above_background, double *fwhm_x, double *fwhm_y)
 
bool GetGaussianParameters (double x_image, double y_image, int size, double *background, double *gaussian_volume, double *correlation, double *gaussian_coord_x, double *gaussian_coord_y, double *sigma_x, double *sigma_y)
 
std::string GetEquinox ()
 
signal_tImageAvailableInBufferSignal ()
 
signal_tCutLevelChangedSignal ()
 
std::vector< std::string > GetFITSHeader ()
 
double GetPixelToDegreesScalingFactor ()
 

Protected Attributes

ddt::DdtLoggerlogger
 

Detailed Description

Class to wrap the usage of image handling functions.

This class allows to load a data file or attach to a data stream. It offers access to image properties and the possibility to process the image data (e.g. flip / rotate etc.).

Member Enumeration Documentation

◆ ColorScalingType

To distinguish between color scaling types.

Enumerator
LINEAR_SCALE 

Linear scaling. The LUT for pixel values is setup using a linear scaling. The LUT will scale the pixels inside the cut level range to the range 0-255.

LOG_SCALE 

Logarithmic scaling. The LUT for pixel values is setup using a logarithmic scaling. The LUT will scale the pixels inside the cut level range to the range 0-255.

SQRT_SCALE 

Square root scaling. The LUT for pixel values is setup using a square root scaling. The LUT will scale the pixels inside the cut level range to the range 0-255.

◆ CutLevelType

To distinguish between cut level types.

Enumerator
AUTO 

Auto cut level. The cut levels are determined by taking the min/max values of the median filtered image.

MINMAX 

Min/Max cut level. The cut levels are determined by taking the min/max values of the image.

USERDEFINED 

Used defined cut levels.

Constructor & Destructor Documentation

◆ ImageHandling()

ImageHandling::ImageHandling ( )

Constructor

◆ ~ImageHandling()

ImageHandling::~ImageHandling ( )
virtual

Destructor

Member Function Documentation

◆ ApplyBias()

void ImageHandling::ApplyBias ( const int  slot)

Apply the BIAS identified by the slot number on the current image

Parameters
slotthe BIAS slot number (starting with 0)

◆ ApplyCutLevelsAuto()

bool ImageHandling::ApplyCutLevelsAuto ( )

Apply cut levels based on the median filtered image min/max values

Returns
true if applying the cut levels was successful, false otherwise

◆ ApplyCutLevelsManual()

bool ImageHandling::ApplyCutLevelsManual ( const double  min_value,
const double  max_value 
)

Apply cut levels based manually

Returns
true if applying the cut levels was successful, false otherwise

◆ ApplyCutLevelsMinMax()

bool ImageHandling::ApplyCutLevelsMinMax ( )

Apply cut levels based on the image min/max values

Returns
true if applying the cut levels was successful, false otherwise

◆ AttachDataStream()

void ImageHandling::AttachDataStream ( std::string  data_stream_id)

Attach to a data stream

Parameters
data_stream_idThe ID of the data stream (could be the URI)

◆ ClearAllBiasImages()

void ImageHandling::ClearAllBiasImages ( )

Clear all BIAS images.

◆ ClearSelectedBiasImage()

void ImageHandling::ClearSelectedBiasImage ( const int  slot)

Clear the selected BIAS image, identified by its slot number

Parameters
slotthe BIAS slot number (starting with 0)

◆ ConvertCanvasToImage()

void ImageHandling::ConvertCanvasToImage ( const double  x_canvas,
const double  y_canvas,
double *  x_image,
double *  y_image 
)

Converts canvas coordinates to image coordinates

Parameters
x_canvasthe canvas x position
y_canvasthe canvas y position
x_imagethe resulting image x position
y_imagethe resulting image y position

◆ ConvertImageToCanvas()

void ImageHandling::ConvertImageToCanvas ( const double  x_image,
const double  y_image,
double *  x_canvas,
double *  y_canvas 
)

Converts image coordinates to canvas coordinates

Parameters
x_imagethe image x position
y_imagethe image y position
x_canvasthe resulting canvas x position
y_canvasthe resulting canvas y position

◆ CutLevelChangedSignal()

signal_t * ImageHandling::CutLevelChangedSignal ( )

Provide the cut level changed signal

◆ DetachDataStream()

void ImageHandling::DetachDataStream ( std::string  data_stream_id)

Detach from a data stream

Parameters
data_stream_idThe ID of the stream to be disconnected

◆ DisplaySelectedBiasImage()

void ImageHandling::DisplaySelectedBiasImage ( const int  slot)

Displax the selected BIAS image, identified by its slot number

Parameters
slotthe BIAS slot number (starting with 0)

◆ EnableBias()

void ImageHandling::EnableBias ( const bool  enable_bias)

Enable BIAS processing. If enabled, the currently selected BIAS image will be subtracted from each new image.

Parameters
enable_biasflag indicating if BIAS processing shall be enabled

◆ get_ActualColorMap()

ddt::colorMap_t * ImageHandling::get_ActualColorMap ( )

Get the actual color map

Returns
the actual color map

◆ get_ActualColorMapARGB()

ddt::colorMapARGB_t * ImageHandling::get_ActualColorMapARGB ( )

Get the actual color map as ARGB value array

Returns
the actual color map

◆ get_ActualColorMapName()

std::string ImageHandling::get_ActualColorMapName ( )

Get the name of the current colourmap

Returns
name of the current colourmap

◆ get_AttachedToStream()

bool ImageHandling::get_AttachedToStream ( )

Get the attached to stream flag from the data acquisition

Returns
the flag indicating if the data acquisition is attached to a data stream

◆ get_BinaryTable()

cpl_table * ImageHandling::get_BinaryTable ( )

Get the binary table data

◆ get_ColorMaps()

std::list< std::string > ImageHandling::get_ColorMaps ( )

Get the list of loaded color maps;

Returns
the list of currently loaded color maps

◆ get_ColorScalingType()

ImageHandling::ColorScalingType ImageHandling::get_ColorScalingType ( )

Get the color scalingtype.

Returns
the currently selected color scaling type

◆ get_ColorScalingTypeStr()

std::string ImageHandling::get_ColorScalingTypeStr ( )

Get a string representaiton of the color scaling type.

Returns
the currently selected color scaling type as string

◆ get_CutLevelMax()

double ImageHandling::get_CutLevelMax ( )

Get the cut level maximum

◆ get_CutLevelMin()

double ImageHandling::get_CutLevelMin ( )

Get the cut level minimum

◆ get_CutLevelType()

ImageHandling::CutLevelType ImageHandling::get_CutLevelType ( )

Get the cut level type.

Returns
the currently selected cut level type

◆ get_CutLevelTypeStr()

std::string ImageHandling::get_CutLevelTypeStr ( )

Get a string representation of the cut level type.

Returns
the currently selected cut level type as string

◆ get_FitsExtensionInfo()

FitsExtension * ImageHandling::get_FitsExtensionInfo ( const int  extension_number)

Get the information about one file extension

Parameters
theextension number
Returns
the FitsExtension object corresponding to the extension number, or nullptr if no such object is available

◆ get_FlipXFlag()

bool ImageHandling::get_FlipXFlag ( )

Get the flip X flag.

Returns
the flip X flag (indicating if the image had been flipped horizontally)

◆ get_FlipYFlag()

bool ImageHandling::get_FlipYFlag ( )

Get the flip Y flag.

Returns
the flip Y flag (indicating if the image had been flipped vertically)

◆ get_Image()

cpl_image * ImageHandling::get_Image ( )

Get the image data

◆ get_ImageData()

void * ImageHandling::get_ImageData ( )

Get the image data

◆ get_ImageHeight()

int ImageHandling::get_ImageHeight ( )

Get the image height

◆ get_ImagePixelMax()

double ImageHandling::get_ImagePixelMax ( )

Get the image pixel maximum

◆ get_ImagePixelMin()

double ImageHandling::get_ImagePixelMin ( )

Get the image pixel minimum

◆ get_ImageWidth()

int ImageHandling::get_ImageWidth ( )

Get the image width

◆ get_LastSegment()

bool ImageHandling::get_LastSegment ( ) const

Get the last segment flag

◆ get_LinearScalingLut()

ddt::scalingLut_t * ImageHandling::get_LinearScalingLut ( )

Get the LUT for linear color scaling

Returns
a scalingLut object (an array of 64K uint values)

◆ get_LogarithmicScalingLut()

ddt::scalingLut_t * ImageHandling::get_LogarithmicScalingLut ( )

Get the LUT for logarithmic color scaling

Returns
a scalingLut object (an array of 64K uint values)

◆ get_NumberAxis()

int ImageHandling::get_NumberAxis ( ) const

Get the number of axis

◆ get_NumberExtensions()

int ImageHandling::get_NumberExtensions ( )

Get the number of extensions

◆ get_PrimaryHDUInfo()

FitsExtension ImageHandling::get_PrimaryHDUInfo ( ) const

Get the information about the primary HDU

Returns
the FitsExtension object corresponding to the primary HDU

◆ get_RotateFlag()

bool ImageHandling::get_RotateFlag ( )

Get the rotate flag.

Returns
the rotate flag (indicating if the image had been rotated)

◆ get_ScalingLut()

ddt::scalingLut_t * ImageHandling::get_ScalingLut ( )

Get the scaling LUT, depending on the current scaling type

Returns
a scalingLut object (an array of 64K uint values)

◆ get_SqrtScalingLut()

ddt::scalingLut_t * ImageHandling::get_SqrtScalingLut ( )

Get the LUT for square root color scaling

Returns
a scalingLut object (an array of 64K uint values)

◆ GetBiasEnabled()

bool ImageHandling::GetBiasEnabled ( ) const

Get the flag indicating whether bias processing is enabled

◆ GetBiasSlotName()

std::string ImageHandling::GetBiasSlotName ( const int  slot)

Get the slot name associated to a certain slot number

Parameters
slotthe slot number (starting with 0)
Returns
the slot name, or empty string in case that the slot number is out of range or there is no image stored in that slot

◆ GetCircularObjects()

cpl_apertures * ImageHandling::GetCircularObjects ( double  sigma)

Get a list of objects from a CPL image

Parameters
sigmathe detection level
Returns
list of cpl_apertures objects

◆ GetCurrentSelectedBiasSlot()

int ImageHandling::GetCurrentSelectedBiasSlot ( ) const

Get the currently selected BIAS slot

Returns
the currently selected BIAS slot, or -1 if no slot is selected

◆ GetCutValuesPercentageFromImage()

void ImageHandling::GetCutValuesPercentageFromImage ( const double  percentage,
double *  min_value,
double *  max_value 
)

◆ GetEquinox()

std::string ImageHandling::GetEquinox ( )

Return the current equinox information related to the image, if available

Returns
the equinox information

◆ GetFITSHeader()

std::vector< std::string > ImageHandling::GetFITSHeader ( )

Get the FITS header items as a vector of strings

Returns
a vector of strings containing the FITS header items

◆ GetGaussianParameters()

bool ImageHandling::GetGaussianParameters ( double  x_image,
double  y_image,
int  size,
double *  background,
double *  gaussian_volume,
double *  correlation,
double *  gaussian_coord_x,
double *  gaussian_coord_y,
double *  sigma_x,
double *  sigma_y 
)

Get parameters from 2D gaussian fit

Parameters
x_imagethe image x position
y_imagethe image y position
sizethe size of the rectangle around the image position to consider
backgroundthe background level, or 0.0 on error
gaussian_volumethe gaussian volumne, or 0.0 on error
correlationthe correlation, or 0.0 on error
gaussian_coord_xthe x coordinate of the mid of the gaussian fit
gaussian_coord_ythe y coordinate of the mid of the gaussian fit
sigma_xthe variance of gaussian fit in x direction
sigma_ythe variance of gaussian fit in y direction
Returns
true on success, otherwise false

◆ GetHistogramBinsFromImage()

void ImageHandling::GetHistogramBinsFromImage ( int  min_value,
int  max_value,
std::vector< int > &  distribution 
)

◆ GetHistogramFromImage()

void ImageHandling::GetHistogramFromImage ( int  min_value,
int  max_value,
std::vector< int > &  distribution 
)

◆ GetObjectCentroidPos()

bool ImageHandling::GetObjectCentroidPos ( cpl_apertures *  apertures,
double  x_image,
double  y_image,
double *  x_centroid,
double *  y_centroid 
)

Find an aperture object that matches certain image coordinates and return the centroid position

Parameters
apertureslist of cpl_apertures objects
x_imagethe image x position
y_imagethe image y position
x_centroidthe centroid x coordinate, or -1.0 on error
y_centroidthe centroid y coordinate, or -1.0 on error
Returns
true on success, otherwise false

◆ GetObjectInformation()

bool ImageHandling::GetObjectInformation ( double  x_image,
double  y_image,
int  size,
double *  x_axis_angle,
double *  background,
double *  peak_above_background,
double *  fwhm_x,
double *  fwhm_y 
)

Get information about an aperture object

Parameters
x_imagethe image x position
y_imagethe image y position
sizethe size of the rectangle around the image position to consider
x_axis_anglethe angle of the x_axis (degrees), or 0.0 on error
backgroundthe background level, or 0.0 on error
peak_above_backgroundthe peak above background value, or 0.0 on error
fwhm_xthe FWHM along the x axis, or -1.0 on error
fwhm_ythe FWHM along the y axis, or -1.0 on error
Returns
true on success, otherwise false

◆ GetPixelToDegreesScalingFactor()

double ImageHandling::GetPixelToDegreesScalingFactor ( )

Calculate and return the factor needed to convert pixel distances to degrees The needed information is taken from the FITS header items, if available

Returns
the pixel to degrees scaling factor, or 0.0 if not available

◆ GetStatisticsCplImageWindow()

CplStatistics * ImageHandling::GetStatisticsCplImageWindow ( int  llx,
int  lly,
int  urx,
int  ury 
)

Get statistics from CPL internal image sub-window

Parameters
llxlower left x position (1: leftmost)
llylower left y position (1: lowest)
urxupper right x position
uryupper right y position
Returns
CplStatistics structure containing statistic values or NULL in case of errors Following values are contained: number of pixels, min pixel value, max pixel value, mean pixel value, rms value

◆ ImageAvailableInBufferSignal()

signal_t * ImageHandling::ImageAvailableInBufferSignal ( )

Provide the image available in buffer signal

◆ ImagePixelFromCanvas()

double ImageHandling::ImagePixelFromCanvas ( const double  x_canvas,
const double  y_canvas,
double *  x_image,
double *  y_image 
)

Get the image pixel value from the position expressed as canvas coordinates

Parameters
xthe canvas x position
ythe canvas y position
x_imagethe resulting image x position
y_imagethe resulting image y position
Returns
the pixel value (converted to double) from the canvas coordinates

◆ ImagePixelFromImage()

double ImageHandling::ImagePixelFromImage ( const double  x_image,
double  y_image 
)

Get the image pixel value from the position expressed as image coordinates

Parameters
x_imagethe image x position
y_imagethe image y position
Returns
the pixel value (converted to double) from the image coordinates

◆ LoadActualColorMap()

bool ImageHandling::LoadActualColorMap ( std::string  color_map_name)

Load the supplied color map as actual color map.

Parameters
color_map_namethe name of the color map to be loaded. The color map names are derived from the color map file names.
Returns
true if loading was successful, false otherwise

◆ LoadActualConfigurationMap()

bool ImageHandling::LoadActualConfigurationMap ( std::string  configuration_map_name)

Load the supplied configuration map as the actual configuration map.

Parameters
configuration_map_namethe name of the configuration map to be loaded.
Returns
true if loading was successful, false otherwise

◆ LoadColorMaps()

bool ImageHandling::LoadColorMaps ( std::string  color_map_folder,
std::string  color_map_name = "standard" 
)

Load the color maps from the specified folder into the color_maps member. If possible, the supplied color map is then loaded as the actual color map.

Parameters
color_map_folderthe folder containing color map files. These files (with extension .lut or .lasc) should contain 256 RGB triples (in the form: r.rrrr g.gggg b.bbbb, where each value is in the range 0.0 and 1.0).
color_map_namethe name of the color map to be loaded. The color map names are derived from the color map file names.
Returns
true if loading was successful, false otherwise

◆ LoadConfigurationMaps()

bool ImageHandling::LoadConfigurationMaps ( std::string  configuration_map_source)

Load the configuration maps from the specified configuration map source.

Parameters
config_map_sourcethe source of the configuration maps

◆ LoadFile()

bool ImageHandling::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).

Parameters
file_namethe FITS file name to load
positionthe position indicating the HDU to use. This defaults to 0 (the first HDU).
Returns
true if loading was successful, false otherwise

◆ LoadFileAsBias()

int ImageHandling::LoadFileAsBias ( const std::string  file_name)

Load a file from disc as BIAS image

Parameters
file_namethe name of the file to load as BIAS image
Returns
slot number into which the image was stored, or -1 in case storing was not possible

◆ LoadFileAsBiasInSlot()

bool ImageHandling::LoadFileAsBiasInSlot ( const std::string  file_name,
const int  slot 
)

Load a file from disc as BIAS image in certain slot

Parameters
file_namethe name of the file to load as BIAS image
slotthe slot number (starting with 0)
Returns
true if loading was successful, false otherwise

◆ LoadImageExtensionsAsOne()

bool ImageHandling::LoadImageExtensionsAsOne ( const std::string &  file_name)

◆ ReprossImage()

bool ImageHandling::ReprossImage ( )

Apply all processing flags and cut levels on the image

◆ ResetCutLevels()

bool ImageHandling::ResetCutLevels ( )

Reset cut levels

Returns
true if resetting the cut levels was successful, false otherwise

◆ set_ColorScalingType()

void ImageHandling::set_ColorScalingType ( ColorScalingType  scaling_type)

Set the actual color scaling type

Parameters
scaling_typethe scaling type to be set

◆ set_ColorScalingTypeLinear()

void ImageHandling::set_ColorScalingTypeLinear ( )

Set the scaling type to LINEAR_SCALE.

◆ set_ColorScalingTypeLogarithmic()

void ImageHandling::set_ColorScalingTypeLogarithmic ( )

Set the scaling type to LOG_SCALE.

◆ set_ColorScalingTypeSquareRoot()

void ImageHandling::set_ColorScalingTypeSquareRoot ( )

Set the scaling type to SQRT_SCALE.

◆ set_CutLevelMax()

void ImageHandling::set_CutLevelMax ( const double  max_value)

Set the cut level maximum

◆ set_CutLevelMin()

void ImageHandling::set_CutLevelMin ( const double  min_value)

Set the cut level minimum

◆ set_CutLevelType()

void ImageHandling::set_CutLevelType ( const CutLevelType  cut_level_type)

Set the cut level type.

◆ set_FlipXFlag()

void ImageHandling::set_FlipXFlag ( const bool  flip_flag)

Set the flip X flag.

◆ set_FlipYFlag()

void ImageHandling::set_FlipYFlag ( const bool  flip_flag)

Set the flip Y flag.

◆ set_logger()

void ImageHandling::set_logger ( ddt::DdtLogger logger)

Set logger

Parameters
loggerThe logger object

◆ set_RotateFlag()

void ImageHandling::set_RotateFlag ( const bool  rot_flag)

Set the rotate flag.

◆ StoreActualImageAsBias()

int ImageHandling::StoreActualImageAsBias ( const std::string  slot_name = "")

Stores the actually displayed image as BIAS image

Parameters
slot_namename to assign to the slot Should be the filename in case of storing a selected file Defaults to empty string, in which case a slot name will be automatically set
Returns
slot number into which the image was stored, or -1 in case storing was not possible

◆ WorldCoordinatesDegreesFromCanvas()

bool ImageHandling::WorldCoordinatesDegreesFromCanvas ( const double  x_canvas,
const double  y_canvas,
double *  alpha,
double *  delta 
)

Get the world coordinates in degrees from canvas coordinates

Parameters
x_canvasthe canvas x position
y_canvasthe canvas y position
alphathe resulting world coordinates alpha value
deltathe resulting world coordinates delta value
Returns
bool indicating success or failure of coordinate fetching

◆ WorldCoordinatesDegreesFromImage()

bool ImageHandling::WorldCoordinatesDegreesFromImage ( const double  x_image,
const double  y_image,
double *  alpha,
double *  delta 
)

Get the world coordinates in degrees from image coordinates

Parameters
x_imagethe image x position
y_imagethe image y position
alphathe resulting world coordinates alpha value
deltathe resulting world coordinates delta value
Returns
bool indicating success or failure of coordinate fetching

Member Data Documentation

◆ logger

ddt::DdtLogger* ddt::ImageHandling::logger
protected

The logger object


The documentation for this class was generated from the following files: