Hugin trunk 0.1
Loading...
Searching...
No Matches
Namespaces | Functions
HuginBase::Color Namespace Reference

Namespaces

namespace  detail
 

Functions

void GetMonitorProfile (wxString &profileName, cmsHPROFILE &profile)
 retrieve monitor profile from system
 
void CorrectImage (wxImage &image, const vigra::ImageImportInfo::ICCProfile &iccProfile, const cmsHPROFILE &monitorProfile)
 apply color correction to given image using input iccProfile and monitor profile
 
template<class ImageType >
void ApplyICCProfile (ImageType &image, const vigra::ImageImportInfo::ICCProfile &iccProfile, const cmsUInt32Number imageFormat)
 converts given image with iccProfile to sRGB/gray space, need to give pixel type in lcms2 format works with color and grayscale images
 

Function Documentation

◆ ApplyICCProfile()

template<class ImageType >
void HuginBase::Color::ApplyICCProfile ( ImageType image,
const vigra::ImageImportInfo::ICCProfile &  iccProfile,
const cmsUInt32Number  imageFormat 
)

converts given image with iccProfile to sRGB/gray space, need to give pixel type in lcms2 format works with color and grayscale images

Definition at line 37 of file cms.h.

References threshold().

Referenced by PanoDetector::AnalyzeImage(), PanoOperation::CelesteOperation::GetInternalCommand(), loadAndConvertImage(), and CPEditorPanel::OnCelesteButton().

◆ CorrectImage()

WXIMPEX void HuginBase::Color::CorrectImage ( wxImage image,
const vigra::ImageImportInfo::ICCProfile &  iccProfile,
const cmsHPROFILE monitorProfile 
)

◆ GetMonitorProfile()

WXIMPEX void HuginBase::Color::GetMonitorProfile ( wxString profileName,
cmsHPROFILE profile 
)

retrieve monitor profile from system

Definition at line 201 of file wxcms.cpp.

References HuginBase::Color::detail::GetMonitorProfile(), and threshold().

Referenced by LensCalImageCtrl::LensCalImageCtrl(), huginApp::OnInit(), and ToolboxFrame::ToolboxFrame().