1 // -*- c-basic-offset: 4 -*- 2 /** @file wxcms.h 3 * 4 * @author T. Modes 5 */ 6 7 /* This is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This software is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public 18 * License along with this software. If not, see 19 * <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef _WXCMS_H 24 #define _WXCMS_H 25 26 #include <hugin_shared.h> 27 #include <panoinc_WX.h> 28 #include <lcms2.h> 29 #include <vigra/imageinfo.hxx> 30 31 namespace HuginBase 32 { 33 namespace Color 34 { 35 /** retrieve monitor profile from system */ 36 WXIMPEX void GetMonitorProfile(wxString& profileName, cmsHPROFILE& profile); 37 /** apply color correction to given image using input iccProfile and monitor profile */ 38 WXIMPEX void CorrectImage(wxImage& image, const vigra::ImageImportInfo::ICCProfile& iccProfile, const cmsHPROFILE& monitorProfile); 39 } 40 } 41 #endif // _WXCMS_H 42