mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
imageUtils.hpp File Reference

Header for the image processing utilities. More...

Header for the image processing utilities.

Author
Jared R. Males

Definition in file imageUtils.hpp.

#include <cstdint>
#include <cmath>
#include "imageTransforms.hpp"

Go to the source code of this file.

Namespaces

namespace  mx
 The mxlib c++ namespace.
 

Functions

template<typename realT = double>
realT mx::improc::imCen (int rows_cols)
 Get the mxlib standard center coordinate of an image.
 
template<typename realT = double, typename imT >
realT mx::improc::imCenX (const imT &im)
 Get the mxlib standard center x-coordinate of an image.
 
template<typename realT = double, typename imT >
realT mx::improc::imCenY (const imT &im)
 Get the mxlib standard center y-coordinate of an image.
 

Function Documentation

◆ imCen()

template<typename realT = double>
realT mx::improc::imCen ( int  rows_cols)

Get the mxlib standard center coordinate of an image.

Returns
0.5*(rows_cols-1)
Parameters
[in]rows_colsthe number of rows or columns in the image

Definition at line 45 of file imageUtils.hpp.

References mx::improc::imCen().

Referenced by mx::improc::imCen().

◆ imCenX()

template<typename realT = double, typename imT >
realT mx::improc::imCenX ( const imT &  im)

Get the mxlib standard center x-coordinate of an image.

Returns
0.5*(rows-1)
Parameters
[in]imthe image to find the center of

Definition at line 55 of file imageUtils.hpp.

References mx::improc::imCenX().

Referenced by mx::improc::imCenX().

◆ imCenY()

template<typename realT = double, typename imT >
realT mx::improc::imCenY ( const imT &  im)

Get the mxlib standard center y-coordinate of an image.

Returns
0.5*(cols-1)
Parameters
[in]imthe image to find the center of

Definition at line 65 of file imageUtils.hpp.

References mx::improc::imCenY().

Referenced by mx::improc::imCenY().