A dialog used to execute image contrast enhencement. More...
#include <ContrastDialog.h>
Public Member Functions | |
ContrastDialog (te::rst::Raster const *inputRasterPtr, const std::string &outpuRasterDSType, const std::map< std::string, std::string > &outpuRasterInfo, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic dialog which is a child of parent, with widget flags set to f. More... | |
ContrastDialog (te::rst::Raster const *rasterPtr, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic dialog which is a child of parent, with widget flags set to f. More... | |
bool | getOutputRaster (boost::shared_ptr< te::rst::Raster > &outputRasterPtr) |
Returns the output result raster. More... | |
~ContrastDialog () | |
Destructor. More... | |
Protected Slots | |
void | on_okPushButton_clicked () |
Private Attributes | |
te::rst::Raster const * | m_inputRasterPtr |
User interface. More... | |
std::string | m_outpuRasterDSType |
true if the output raster is the input raster. More... | |
std::map< std::string, std::string > | m_outpuRasterInfo |
Output raster data source type (as described in te::raster::RasterFactory ). More... | |
bool | m_outputRasterIsInputRaster |
Input raster pointer. More... | |
boost::shared_ptr < te::rst::Raster > | m_outputRasterPtr |
The necessary information to create the raster (as described in te::raster::RasterFactory). More... | |
Ui::ContrastForm * | m_uiPtr |
A dialog used to execute image contrast enhencement.
Definition at line 62 of file ContrastDialog.h.
te::qt::widgets::ContrastDialog::ContrastDialog | ( | te::rst::Raster const * | inputRasterPtr, |
const std::string & | outpuRasterDSType, | ||
const std::map< std::string, std::string > & | outpuRasterInfo, | ||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic dialog which is a child of parent, with widget flags set to f.
inputRasterPtr | Input raster pointer. |
outpuRasterDSType | Output raster data source type (as described in te::raster::RasterFactory ). |
outpuRasterInfo | The necessary information to create the raster (as described in te::raster::RasterFactory). |
parent | Parent widget pointer. |
f | Widget flags. |
Definition at line 37 of file ContrastDialog.cpp.
References te::rst::Raster::getNumberOfBands(), m_uiPtr, and on_okPushButton_clicked().
te::qt::widgets::ContrastDialog::ContrastDialog | ( | te::rst::Raster const * | rasterPtr, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic dialog which is a child of parent, with widget flags set to f.
rasterPtr | Raster pointer (this is both input and output raster, the result be written to this raster). |
parent | Parent widget pointer. |
f | Widget flags. |
Definition at line 63 of file ContrastDialog.cpp.
References te::rst::Raster::getNumberOfBands(), m_uiPtr, and on_okPushButton_clicked().
te::qt::widgets::ContrastDialog::~ContrastDialog | ( | ) |
Destructor.
Definition at line 85 of file ContrastDialog.cpp.
bool te::qt::widgets::ContrastDialog::getOutputRaster | ( | boost::shared_ptr< te::rst::Raster > & | outputRasterPtr | ) |
Returns the output result raster.
outputRasterPtr | A pointer to the output result raster |
Definition at line 90 of file ContrastDialog.cpp.
|
protectedslot |
Definition at line 104 of file ContrastDialog.cpp.
References te::rp::Contrast::execute(), te::rp::Contrast::InputParameters::HistogramEqualizationContrastT, te::rp::Contrast::initialize(), te::rp::Contrast::InputParameters::LinearContrastT, te::rp::Contrast::OutputParameters::m_createdOutRasterDSType, te::rp::Contrast::OutputParameters::m_createdOutRasterInfo, te::rp::Contrast::OutputParameters::m_createdOutRasterPtr, te::rp::Contrast::InputParameters::m_hECMaxInput, te::rp::Contrast::InputParameters::m_inRasterBands, te::rp::Contrast::InputParameters::m_inRasterPtr, te::rp::Contrast::InputParameters::m_lCMaxInput, te::rp::Contrast::InputParameters::m_lCMinInput, te::rp::Contrast::OutputParameters::m_outRasterBands, te::rp::Contrast::OutputParameters::m_outRasterPtr, te::rp::Contrast::InputParameters::m_sMASCMeanInput, te::rp::Contrast::InputParameters::m_sMASCStdInput, te::rp::Contrast::InputParameters::m_type, and te::rp::Contrast::InputParameters::MeanAndStdContrastT.
Referenced by ContrastDialog().
|
private |
User interface.
Definition at line 116 of file ContrastDialog.h.
|
private |
true if the output raster is the input raster.
Definition at line 118 of file ContrastDialog.h.
|
private |
Output raster data source type (as described in te::raster::RasterFactory ).
Definition at line 119 of file ContrastDialog.h.
|
private |
Input raster pointer.
Definition at line 117 of file ContrastDialog.h.
|
private |
The necessary information to create the raster (as described in te::raster::RasterFactory).
Definition at line 120 of file ContrastDialog.h.
|
private |
Definition at line 115 of file ContrastDialog.h.
Referenced by ContrastDialog().