|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Image filters (smoothing, radial profiles, etc.) More...
Image filters (smoothing, radial profiles, etc.)
Definition in file imageFilters.hpp.
#include <cstdlib>#include "../math/gslInterpolator.hpp"#include "../math/vectorUtils.hpp"#include "../math/geo.hpp"#include "imageMasks.hpp"Go to the source code of this file.
Classes | |
| struct | mx::improc::gaussKernel< _arrayT, _kernW > |
| Symetric Gaussian smoothing kernel. More... | |
| struct | mx::improc::azBoxKernel< _arrayT, _kernW > |
| Azimuthally variable boxcare kernel. More... | |
Namespaces | |
| namespace | mx |
| The mxlib c++ namespace. | |
Functions | |
| template<typename imageOutT , typename imageInT , typename kernelT > | |
| void | mx::improc::filterImage (imageOutT &fim, imageInT im, kernelT kernel, int maxr=0) |
| Filter an image with a mean kernel. | |
| template<typename imageTout , typename imageTin > | |
| int | mx::improc::meanSmooth (imageTout &imOut, const imageTin &imIn, int meanFullWidth, bool rejectMinMax=false) |
| Smooth an image using the mean in a rectangular box, optionally rejecting the highest and lowest values. | |
| template<typename imageTout , typename imageTin > | |
| int | mx::improc::meanSmooth (imageTout &imOut, int &xMax, int &yMax, typename imageTout::Scalar &pMax, const imageTin &imIn, int meanFullWidth, bool rejectMinMax=false) |
| template<typename imageTout , typename imageTin > | |
| int | mx::improc::medianSmooth (imageTout &imOut, int &xMax, int &yMax, typename imageTout::Scalar &pMax, const imageTin &imIn, int medianFullWidth) |
| template<typename imageTout , typename imageTin > | |
| int | mx::improc::medianSmooth (imageTout &imOut, const imageTin &imIn, int medianFullWidth) |
| Smooth an image using the median in a rectangular box. | |
| template<typename eigenImT > | |
| void | mx::improc::rowEdgeMedSubtract (eigenImT &im, int ncols) |
| template<typename eigenImT > | |
| void | mx::improc::colEdgeMedSubtract (eigenImT &im, int nrows) |
| template<typename vecT , typename eigenImT1 , typename eigenImT2 , typename eigenImT3 > | |
| void | mx::improc::radprof (vecT &rad, vecT &prof, const eigenImT1 &im, const eigenImT2 &radim, const eigenImT3 *mask, bool mean=false, typename eigenImT1::Scalar minr=0) |
| Calculate the the radial profile. | |
| template<typename vecT , typename eigenImT1 , typename eigenImT2 > | |
| void | mx::improc::radprof (vecT &rad, vecT &prof, const eigenImT1 &im, const eigenImT2 &mask, bool mean=false) |
| Calculate the the radial profile. | |
| template<typename vecT , typename eigenImT1 > | |
| void | mx::improc::radprof (vecT &rad, vecT &prof, const eigenImT1 &im, bool mean=false, double dr=1) |
| Calculate the the radial profile. | |
| template<typename radprofT , typename eigenImT1 , typename eigenImT2 , typename eigenImT3 > | |
| void | mx::improc::radprofim (radprofT &radprofIm, eigenImT1 &im, const eigenImT2 &rad, const eigenImT3 *mask, bool subtract, bool mean=false) |
| Form a radial profile image, and optionally subtract it from the input. | |
| template<typename radprofT , typename eigenImT > | |
| void | mx::improc::radprofim (radprofT &radprof, eigenImT &im, bool subtract=false, bool mean=false) |
| Form a radial profile image, and optionally subtract it from the input. | |
| void mx::improc::colEdgeMedSubtract | ( | eigenImT & | im, |
| int | nrows | ||
| ) |
| im | The image to filter |
| nrows | The number of rows on each side of the image to use as the reference |
Definition at line 807 of file imageFilters.hpp.
References mx::improc::colEdgeMedSubtract(), and mx::math::vectorMedian().
Referenced by mx::improc::colEdgeMedSubtract().
| void mx::improc::rowEdgeMedSubtract | ( | eigenImT & | im, |
| int | ncols | ||
| ) |
| im | The image to filter |
| ncols | The number of columns on each side of the image to use as the reference |
Definition at line 780 of file imageFilters.hpp.
References mx::improc::rowEdgeMedSubtract(), and mx::math::vectorMedian().
Referenced by mx::improc::rowEdgeMedSubtract().