23#ifndef __CTX_IMAGE_UTILS_H__
24#define __CTX_IMAGE_UTILS_H__
62 virtual gzVoid
onLoadImage(
const gzString &name,
const gzString &path, gzUInt32 index) = 0;
83 gzDynamicArray<gzUInt32> m_categoryIdCount;
85 gzDict<gzString, gzVoid> m_categories;
176 gzVoid normalizeImage(gzImage *image, gzUInt32 index);
180 gzDynamicArray<ctxImageCollectionInfo> m_imageInfo;
182 gzUInt32 m_currentIndex;
184 gzImagePtr m_currentImage;
gzUInt32 getCategory(const gzString &categoryName)
virtual gzFloat getComponentValue(gzUInt32 id, gzInt32 x, gzInt32 y, gzInt32 depth)=0
virtual gzUInt32 getImageHeight()=0
virtual gzUInt32 getNumberOfImages()=0
gzFloat getInterpolatedComponentValue(gzUInt32 id, gzDouble x, gzDouble y, gzInt32 depth, ctxImageInterpolationType interpolation)
Sample a component with explicit nearest/linear interpolation.
virtual gzUInt32 getImageDepth()=0
virtual gzUInt32 getImageWidth()=0
virtual gzFloat getMean(gzUInt32 index, gzUInt32 component)
virtual gzString getImagePath(gzUInt32 index)
virtual gzUInt32 getImageWidth() override
virtual gzFloat getStdDev(gzUInt32 index, gzUInt32 component)
virtual gzUInt32 getImageDepth() override
virtual gzFloat getComponentValue(gzUInt32 index, gzInt32 x, gzInt32 y, gzInt32 depth) override
virtual gzUInt32 getNumberOfImages() override
ctxImageCollection(gzUInt32 width=0, gzUInt32 height=0, gzUInt32 depth=0)
gzBool loadImages(const gzString &directoryPath, const gzString &extension_list=ALL_EXTENSIONS, gzBool loadImmediately=FALSE, gzUInt32 maxImages=0xFFFFFFFFUL)
virtual gzUInt32 getImageHeight() override
virtual gzBool isValidImage(gzImage *image, const gzString &name)
virtual gzString getImageName(gzUInt32 index)
virtual gzVoid onLoadImage(const gzString &name, const gzString &path, gzUInt32 index)=0
GZ_USE_BIT_LOGIC(ctxInstrumentationFlags)
ctxImageInterpolationType
Explicit interpolation for caller-owned image accessors.
ctxImageAccessInterface * ctxImageAccessInterfacePtr
ctxImageNotifyInterface * ctxImageNotifyInterfacePtr
ctxImageNormalizationType
@ CTX_IMAGE_NORMALIZATION_STANDARD_MAX_CHANNEL
@ CTX_IMAGE_NORMALIZATION_RED_CHANNEL
@ CTX_IMAGE_NORMALIZATION_STANDARD
@ CTX_IMAGE_NORMALIZATION_BLUE_CHANNEL
@ CTX_IMAGE_NORMALIZATION_GREEN_CHANNEL
@ CTX_IMAGE_NORMALIZATION_DEFAULT
@ CTX_IMAGE_NORMALIZATION_MAX_VECTOR
@ CTX_IMAGE_NORMALIZATION_MEAN_ONLY
@ CTX_IMAGE_NORMALIZATION_STANDARD_VECTOR
@ CTX_IMAGE_NORMALIZATION_ALPHA_CHANNEL
@ CTX_IMAGE_NORMALIZATION_MASK
@ CTX_IMAGE_NORMALIZATION_OFF
@ CTX_IMAGE_NORMALIZATION_MEAN_ONLY_MAX_CHANNEL
const gzString ALL_EXTENSIONS