FLImaging 7.3.19.2
FLImageDisplayUtilities.h
1#pragma once
2#include "FLPoint.h"
3
9
11namespace FLImaging
12{
14 namespace Foundation
15 {
56 struct FL_EXPORT sBufferFormat
57 {
58 sBufferFormat();
59 sBufferFormat(bool _bAlignToDword, bool _bBGR, bool _bBottomUp);
60 bool bAlignToDword;
61 bool bBGR;
62 bool bBottomUp;
63 };
64
65 typedef struct sBufferFormat SBufferFormat;
66
77 {
78 public:
87
88 static CFLImageDisplayUtilities* GetObject();
89 static bool Initialize();
90 static bool IsInitialized();
91
101 static uint8_t* GetFloatTable();
102
112 static uint32_t* GetIntensitySpectrumTable();
113
137 static uint32_t* GetSegmentationColorTable();
138
166 static int64_t GetAlignedRowStrideBytes(int64_t i64Width, int64_t i64Channel);
167
183 static const CResult GetRangeOfFloatImage(const Base::CFLImage* pFliSrc,
184 double& f64MinVal,
185 double& f64MaxVal);
239 static const CResult ConvertFLImageToBuffer(const Base::CFLImage* pFliSrc,
240 uint8_t* pDstBuffer,
241 int64_t i64DstWidth,
242 int64_t i64DstHeight,
243 const Foundation::CFLPoint<double>* pFlpOffset = nullptr,
244 double f64ScaleX = 1.,
245 double f64ScaleY = 1.,
246 double f64MinVal = 0.,
247 double f64MaxVal = 1.,
248 bool bSegmentationWithColor = false,
249 bool bReductionInterpolation = false,
250 const SBufferFormat& sFormat = SBufferFormat());
251
252 static const CResult ConvertFLImageToBuffer(const Base::CFLImage& fliSrc,
253 uint8_t* pDstBuffer,
254 int64_t i64DstWidth,
255 int64_t i64DstHeight,
256 const Foundation::CFLPoint<double>* pFlpOffset = nullptr,
257 double f64ScaleX = 1.,
258 double f64ScaleY = 1.,
259 double f64MinVal = 0.,
260 double f64MaxVal = 1.,
261 bool bSegmentationWithColor = false,
262 bool bReductionInterpolation = false,
263 const SBufferFormat& sFormat = SBufferFormat());
264
265
266 protected:
267 volatile bool m_bInitialized;
268 };
269 }
270}
FLImaging의 이미지 클래스
Definition FLImage.h:35
FLImaging 모듈의 수행 결과 객체
Definition ResultsDef.h:1676
static uint32_t * GetIntensitySpectrumTable()
픽셀 강도값을 색상 스펙트럼으로 변환하기 위한 룩업 테이블을 반환합니다.
static const CResult ConvertFLImageToBuffer(const Base::CFLImage *pFliSrc, uint8_t *pDstBuffer, int64_t i64DstWidth, int64_t i64DstHeight, const Foundation::CFLPoint< double > *pFlpOffset=nullptr, double f64ScaleX=1., double f64ScaleY=1., double f64MinVal=0., double f64MaxVal=1., bool bSegmentationWithColor=false, bool bReductionInterpolation=false, const SBufferFormat &sFormat=SBufferFormat())
CFLImage 를 화면 표시용 버퍼로 변환합니다.
static int64_t GetAlignedRowStrideBytes(int64_t i64Width, int64_t i64Channel)
Bitmap 스타일 버퍼에서 사용되는 4바이트(DWORD) 정렬 규칙에 따라 한 행(row)을 저장하는 데 필요한 바이트 수를 계산합니다.
static uint32_t * GetSegmentationColorTable()
클래스 번호별로 미리 정의된 세그멘테이션 색상 테이블을 반환합니다.
static const CResult GetRangeOfFloatImage(const Base::CFLImage *pFliSrc, double &f64MinVal, double &f64MaxVal)
부동소수점 이미지의 최소/최대 픽셀 값을 계산합니다.
static uint8_t * GetFloatTable()
부동소수점 픽셀값(0.0–1.0)을 8비트 강도로 변환하기 위한 룩업 테이블을 반환합니다.
점을 표현하는 클래스
Definition FLPoint.h:24
Definition AlgorithmBase.h:16
FLImage를 표시용 버퍼로 변환할 때 사용할 출력 버퍼 형식을 지정하는 구조체입니다.
Definition FLImageDisplayUtilities.h:57