Skip to content

File ImageUtilityCCM.h

File List > include > ImageUtilityCCM.h

Go to the documentation of this file

//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================

#ifndef FLIR_SPINNAKER_IMAGE_UTILITY_CCM_H
#define FLIR_SPINNAKER_IMAGE_UTILITY_CCM_H

#include "SpinnakerPlatform.h"
#include "SpinnakerDefs.h"

namespace Spinnaker
{
    class ImagePtr;

    class SPINNAKER_API ImageUtilityCCM
    {
      public:
        static ImagePtr CreateColorCorrected(const ImagePtr& srcImage, const CCMSettings& settings);

        static void CreateColorCorrected(const ImagePtr& srcImage, ImagePtr& destImage, const CCMSettings& settings);

        static std::string EncryptColorCorrectionMatrix(std::string ccmMatrixEntries);

        static std::string ColorTemperatureToString(const CCMColorTemperature& colorTemperature);

        static std::string TypeToString(const CCMType& type);

        static std::string SensorToString(const CCMSensor& sensor);

        static std::string ColorSpaceToString(const CCMColorSpace& colorSpace);

        static std::string ApplicationToString(const CCMApplication& application);
    };

} // namespace Spinnaker

#endif // FLIR_SPINNAKER_IMAGE_UTILITY_CCM_H