File ManagedImageStatistics.h¶
File List > SpinnakerNET > ManagedImageStatistics.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 MGD_IMAGESTATS_H
#define MGD_IMAGESTATS_H
#include "ManagedDefs.h"
#include "ImageStatistics.h"
using namespace ::System;
using namespace ::System::Runtime::InteropServices;
namespace SpinnakerNET
{
public ref class ManagedImageStatistics
{
public:
ManagedImageStatistics();
~ManagedImageStatistics();
void EnableAll();
void DisableAll();
void EnableGreyOnly();
void EnableRGBOnly();
void EnableHSLOnly();
bool GetChannelStatus(
SpinnakerNET::StatisticsChannel channel );
void SetChannelStatus(
SpinnakerNET::StatisticsChannel channel,
bool enabled );
void GetRange(
SpinnakerNET::StatisticsChannel channel,
unsigned int% min,
unsigned int% max );
void GetPixelValueRange(
SpinnakerNET::StatisticsChannel channel,
unsigned int% pixelValueMin,
unsigned int% pixelValueMax );
void GetNumPixelValues(
SpinnakerNET::StatisticsChannel channel,
unsigned int% numPixelValues );
void GetMean(
SpinnakerNET::StatisticsChannel channel,
float% mean );
void GetHistogram(
SpinnakerNET::StatisticsChannel channel,
array<int>^ histogram );
void GetStatistics(
SpinnakerNET::StatisticsChannel channel,
unsigned int% rangeMin,
unsigned int% rangeMax,
unsigned int% pixelValueMin,
unsigned int% pixelValueMax,
unsigned int% numPixelValues,
float% mean,
array<int>^ histogram );
internal:
Spinnaker::ImageStatistics* GetNativeImageStatistics();
protected:
private:
Spinnaker::ImageStatistics* m_pImageStats;
};
}
#endif