CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxIOImageSampler Class Reference

#include <ctxInputOutputImpl.h>

Inheritance diagram for ctxIOImageSampler:
ctxInputOutputUnifier ctxCategoryManager ctxImageNotifyInterface ctxInput ctxOutput ctxSignalSource ctxInputInterface ctxCortexLayer ctxOutputInterface ctxSignalSourceInterface ctxDebugInterface ctxCompileInterface ctxPropagateInterface

Public Member Functions

 ctxIOImageSampler (ctxImageAccessInterfacePtr accessor=NULL)
virtual gzFloat getValue_U (ctxContext *context, gzUInt32 index, gzUInt32 currentSample)
virtual gzUInt32 getSampleSize ()
virtual gzUInt32 getSamples ()
virtual gzFloat getExpectedValue_U (ctxContext *context, gzUInt32 index, gzUInt32 currentSample)
 Bit expected value.
virtual gzUInt32 getResultSize ()
virtual gzUInt32 getResults ()
virtual gzFloat getResultValue (gzUInt32 id, gzUInt32 index, gzUInt32 sample_cx, gzUInt32 sample_cy, gzUInt32 sample_cz)
virtual gzVoid onLoadImage (const gzString &name, const gzString &path, gzUInt32 id)
virtual gzArray< gzFloat > getExpectedValueArray (const gzString &name, const gzString &path, gzUInt32 id)
gzUInt32 getWidthDivisions ()
gzUInt32 getHeightDivisions ()
gzUInt32 getDepthDivisions ()
gzFloat sampleImage (gzUInt32 index, gzFloat x, gzFloat y, gzInt32 depth)
gzFloat sampleImageInterpolated (gzUInt32 index, gzDouble x, gzDouble y, gzInt32 depth, ctxImageInterpolationType interpolation)
 Explicit nearest/linear sampling through the existing image accessor.
const ctxImageAccessInterfacePtr & getAccessor () const
gzVoid setAccessor (const ctxImageAccessInterfacePtr &prop)
const gzUInt32 & getSampleWidth () const
gzVoid setSampleWidth (const gzUInt32 &prop)
const gzUInt32 & getSampleHeight () const
gzVoid setSampleHeight (const gzUInt32 &prop)
const gzUInt32 & getSampleDepth () const
gzVoid setSampleDepth (const gzUInt32 &prop)
const gzUInt32 & getSampleWidthStride () const
gzVoid setSampleWidthStride (const gzUInt32 &prop)
const gzUInt32 & getSampleHeightStride () const
gzVoid setSampleHeightStride (const gzUInt32 &prop)
const gzUInt32 & getSampleDepthStride () const
gzVoid setSampleDepthStride (const gzUInt32 &prop)
const gzUInt32 & getSampleWidthStep () const
gzVoid setSampleWidthStep (const gzUInt32 &prop)
const gzUInt32 & getSampleHeightStep () const
gzVoid setSampleHeightStep (const gzUInt32 &prop)
const gzUInt32 & getSampleDepthStep () const
gzVoid setSampleDepthStep (const gzUInt32 &prop)
const gzBool & getFlipX () const
gzVoid setFlipX (const gzBool &prop)
const gzBool & getFlipY () const
gzVoid setFlipY (const gzBool &prop)
const gzBool & getFlipXY () const
gzVoid setFlipXY (const gzBool &prop)
const gzUInt32 & getRotations () const
gzVoid setRotations (const gzUInt32 &prop)
const gzFloat & getStartAngle () const
gzVoid setStartAngle (const gzFloat &prop)
const gzFloat & getDeltaAngle () const
gzVoid setDeltaAngle (const gzFloat &prop)
const gzUInt32 & getIntervall () const
gzVoid setIntervall (const gzUInt32 &prop)
const gzUInt32 & getScaleSteps () const
gzVoid setScaleSteps (const gzUInt32 &prop)
const gzUInt32 & getReservedSamples () const
gzVoid setReservedSamples (const gzUInt32 &prop)
const gzBool & getUseResultArray () const
gzVoid setUseResultArray (const gzBool &prop)
Public Member Functions inherited from ctxInputOutputUnifier
 ctxInputOutputUnifier ()
virtual gzBool updateUnifier ()
virtual gzFloat getValue (ctxContext *context, gzUInt32 index, gzUInt32 sample)
virtual gzFloat getExpectedValue (ctxContext *context, gzUInt32 index, gzUInt32 sample)
Public Member Functions inherited from ctxInput
virtual gzType * getType () const
 ctxInput ()
gzBool allocateInput (ctxContext *context, gzUInt32 index)
gzUInt32 getInputSourceID () const
gzVoid setInputSourceID (gzUInt32 source)
const gzArray< gzUInt32 > & getInputIndices () const
gzVoid setInputIndices (const gzArray< gzUInt32 > &indices)
Public Member Functions inherited from ctxSignalSource
 ctxSignalSource ()
gzVoid setUpdated (gzUInt32 updateID)
gzBool isUpdated (gzUInt32 updateID)
gzUInt32 getUpdateID ()
gzVoid setUpdatedDelta (gzUInt32 updateID)
gzBool isUpdatedDelta (gzUInt32 updateID)
gzVoid addReceiver (ctxSignalSource *receiver)
 Receivers -----------------------—.
gzVoid removeReceiver (ctxSignalSource *receiver)
gzUInt32 getNumberOfReceivers ()
gzUInt32 getNumberOfReceivers (ctxContext *context)
gzVoid setDelta (ctxContext *context, const gzFloat &value)
 Deltas --------------------------—.
gzFloat getDelta (ctxContext *context)
gzFloat getAvgDelta (ctxContext *context, gzUInt32 page=0)
gzBool compileReceiverDeltaSum (ctxContext *context)
const gzUInt32 & getSourceIndex () const
gzVoid setSourceIndex (const gzUInt32 &prop)
const gzUInt32 & getDeltaIndex () const
gzVoid setDeltaIndex (const gzUInt32 &prop)
gzVoid allocateDelta (ctxContext *context)
Public Member Functions inherited from ctxDebugInterface
gzVoid setDebugFlags (ctxDebugInstanceManager *manager, const ctxDebugFlags &flags)
ctxDebugFlags getDebugFlags (ctxDebugInstanceManager *manager)
gzVoid setLayerID (ctxDebugInstanceManager *manager, const gzUInt32 &layerID)
gzUInt32 getLayerID (ctxDebugInstanceManager *manager)
gzVoid setFeature (ctxDebugInstanceManager *manager, const gzUInt32 &featureIndex, const gzUInt32XYZ &featurePosition)
gzUInt32 getFeatureIndex (ctxDebugInstanceManager *manager)
gzUInt32XYZ getFeaturePosition (ctxDebugInstanceManager *manager)
Public Member Functions inherited from ctxInputInterface
virtual gzFloat getDefaultValue () const
Public Member Functions inherited from ctxOutput
virtual gzType * getType () const
gzBool compile (ctxContext *context)
virtual gzFloat getOutputValue (ctxContext *context, gzUInt32 index, gzUInt32 page=0)
virtual gzUInt32 getOutputValueIndex (gzUInt32 index)
gzVoid translateValueIndices (ctxRegisterTranslation &translation)
const gzDynamicArray< gzUInt32 > & getOutputValueIndices () const
gzVoid setOutputValueIndices (const gzDynamicArray< gzUInt32 > &indices)
gzVoid propagate (ctxContext *context, ctxPropagateCommand command)
gzUInt32 getMaxValueIndex (ctxContext *context, gzUInt32 page=0)
gzUInt32 getMaxExpectedIndex (ctxContext *context, gzUInt32 page=0)
virtual gzBool isError (ctxContext *context, gzUInt32 page=0)
 If complete sample is wrong, defaults to max value of bit is same.
Public Member Functions inherited from ctxCortexLayer
 ctxCortexLayer ()
virtual ~ctxCortexLayer ()
gzVoid addLayerNeurons (gzUInt32 layerNeurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzUInt32 synapses=0, ctxContext *shared=NULL)
gzVoid addConvolutionNeurons (ctxIndexControl source, ctxIndexControl filter, ctxContext *context, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzBool sharedBias=TRUE, gzUInt32 source_offset=0)
gzVoid addMappedConvolutionSynapses (gzUInt32 sourceFeatureIndex, gzUInt32 sourceFeatureCount, gzUInt32 destinationFeatureIndex, gzUInt32 destinationFeatureCount, gzUInt32 sourceWidth, gzUInt32 sourceHeight, gzUInt32 sourceDepth, gzUInt32 destinationWidth, gzUInt32 destinationHeight, gzUInt32 destinationDepth, gzUInt32 destinationOriginX, gzUInt32 destinationOriginY, gzUInt32 destinationOriginZ, gzUInt32 regionWidth, gzUInt32 regionHeight, gzUInt32 regionDepth, gzInt32 sourceOriginX, gzInt32 sourceOriginY, gzInt32 sourceOriginZ, gzUInt32 kernelWidth, gzUInt32 kernelHeight, gzUInt32 kernelDepth, gzUInt32 strideX, gzUInt32 strideY, gzUInt32 strideZ, gzUInt32 paddingLeft, gzUInt32 paddingTop, gzUInt32 paddingFront, gzUInt32 dilationX, gzUInt32 dilationY, gzUInt32 dilationZ, ctxCortexLayer *sourceLayer, ctxInput *input, ctxContext *context, gzUInt32 parameterBaseIndex, gzUInt32 mappingOccurrenceID, gzUInt32 parameterGroupID)
gzVoid addPoolingNeurons (ctxIndexControl source, ctxIndexControl filter, ctxContext *context=NULL, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_MAX, gzUInt32 source_offset=0)
gzVoid setFeatureStart (ctxContext *context, gzUInt32 id, gzUInt32 features, gzUInt32 width, gzUInt32 height, gzUInt32 depth)
gzVoid setDropConnection (gzBool on)
gzVoid addNeuron (ctxNeuron *neuron)
gzVoid removeNeuron (ctxNeuron *neuron)
gzVoid addSubLayer (ctxCortexLayer *layer, ctxLayerType type=CTX_IN_OUT_LAYER)
gzVoid removeSubLayer (ctxCortexLayer *layer)
ctxCortexLayer * getSubLayer (gzUInt32 layerIndex, ctxLayerType type=CTX_INPUT_LAYER)
ctxNeuron * getNeuron (gzUInt32 neuronIndex)
gzUInt32 getNeuronCount ()
gzRefList< ctxCortexLayer > & getSubInputLayerList ()
gzRefList< ctxCortexLayer > & getSubHiddenLayerList ()
gzRefList< ctxCortexLayer > & getSubOutputLayerList ()
gzVoid connectInput (ctxCortexLayer *input)
gzVoid connectInput (ctxNeuron *input)
gzVoid connectInput (ctxInput *input)
gzVoid connectOutput (ctxNeuron *output)
gzVoid connectOutput (ctxCortexLayer *output)
gzVoid setDebugFlags (ctxContext *context, ctxDebugFlags flags, gzUInt32 layerID, gzUInt32 maxCount=5, gzBool onSynapses=FALSE, gzUInt32 maxFeature=CTX_UNDEFINED_INDEX)
gzVoid debugConnections (gzUInt32 index=CTX_UNDEFINED_INDEX)
virtual gzReference * clone () const
 Built in clone.
Public Member Functions inherited from ctxCategoryManager
gzBool saveCategories ()
gzBool loadCategories ()
gzUInt32 getCategory (const gzString &categoryName)
gzUInt32 getCategories ()

Additional Inherited Members

Static Public Member Functions inherited from ctxInput
static gzType * getClassType ()
Static Public Member Functions inherited from ctxSignalSource
static gzType * getClassType ()
Static Public Member Functions inherited from ctxOutput
static gzType * getClassType ()
Static Public Member Functions inherited from ctxCortexLayer
static gzType * getClassType ()
Public Attributes inherited from ctxDebugInterface
 GZ_DECLARE_TYPE_INTERFACE
 Provides Run Time Type Info (RTTI) for the gzTypeInterface.
Protected Attributes inherited from ctxCortexLayer
gzDynamicArray< ctxNeuronPtr > m_layerNeurons
gzRefList< ctxCortexLayer > m_subInputLayers
gzRefList< ctxCortexLayer > m_subHiddenLayers
gzRefList< ctxCortexLayer > m_subOutputLayers

Detailed Description

Definition at line 31 of file ctxInputOutputImpl.h.

Constructor & Destructor Documentation

◆ ctxIOImageSampler()

ctxIOImageSampler::ctxIOImageSampler ( ctxImageAccessInterfacePtr accessor = NULL)

References CTX_EXPORT.

Member Function Documentation

◆ getAccessor()

const ctxImageAccessInterfacePtr & ctxIOImageSampler::getAccessor ( ) const

References CTX_EXPORT.

◆ getDeltaAngle()

const gzFloat & ctxIOImageSampler::getDeltaAngle ( ) const

References CTX_EXPORT.

◆ getDepthDivisions()

gzUInt32 ctxIOImageSampler::getDepthDivisions ( )

References CTX_EXPORT.

◆ getExpectedValue_U()

virtual gzFloat ctxIOImageSampler::getExpectedValue_U ( ctxContext * context,
gzUInt32 index,
gzUInt32 currentSample )
virtual

Bit expected value.

Implements ctxInputOutputUnifier.

References CTX_EXPORT.

◆ getExpectedValueArray()

virtual gzArray< gzFloat > ctxIOImageSampler::getExpectedValueArray ( const gzString & name,
const gzString & path,
gzUInt32 id )
virtual

References CTX_EXPORT.

◆ getFlipX()

const gzBool & ctxIOImageSampler::getFlipX ( ) const

References CTX_EXPORT.

◆ getFlipXY()

const gzBool & ctxIOImageSampler::getFlipXY ( ) const

References CTX_EXPORT.

◆ getFlipY()

const gzBool & ctxIOImageSampler::getFlipY ( ) const

References CTX_EXPORT.

◆ getHeightDivisions()

gzUInt32 ctxIOImageSampler::getHeightDivisions ( )

References CTX_EXPORT.

◆ getIntervall()

const gzUInt32 & ctxIOImageSampler::getIntervall ( ) const

References CTX_EXPORT.

◆ getReservedSamples()

const gzUInt32 & ctxIOImageSampler::getReservedSamples ( ) const

References CTX_EXPORT.

◆ getResults()

virtual gzUInt32 ctxIOImageSampler::getResults ( )
virtual

Implements ctxOutputInterface.

References CTX_EXPORT.

◆ getResultSize()

virtual gzUInt32 ctxIOImageSampler::getResultSize ( )
virtual

Implements ctxOutputInterface.

References CTX_EXPORT.

◆ getResultValue()

virtual gzFloat ctxIOImageSampler::getResultValue ( gzUInt32 id,
gzUInt32 index,
gzUInt32 sample_cx,
gzUInt32 sample_cy,
gzUInt32 sample_cz )
virtual

References CTX_EXPORT.

◆ getRotations()

const gzUInt32 & ctxIOImageSampler::getRotations ( ) const

References CTX_EXPORT.

◆ getSampleDepth()

const gzUInt32 & ctxIOImageSampler::getSampleDepth ( ) const

References CTX_EXPORT.

◆ getSampleDepthStep()

const gzUInt32 & ctxIOImageSampler::getSampleDepthStep ( ) const

References CTX_EXPORT.

◆ getSampleDepthStride()

const gzUInt32 & ctxIOImageSampler::getSampleDepthStride ( ) const

References CTX_EXPORT.

◆ getSampleHeight()

const gzUInt32 & ctxIOImageSampler::getSampleHeight ( ) const

References CTX_EXPORT.

◆ getSampleHeightStep()

const gzUInt32 & ctxIOImageSampler::getSampleHeightStep ( ) const

References CTX_EXPORT.

◆ getSampleHeightStride()

const gzUInt32 & ctxIOImageSampler::getSampleHeightStride ( ) const

References CTX_EXPORT.

◆ getSamples()

virtual gzUInt32 ctxIOImageSampler::getSamples ( )
virtual

Implements ctxInputInterface.

References CTX_EXPORT.

◆ getSampleSize()

virtual gzUInt32 ctxIOImageSampler::getSampleSize ( )
virtual

Implements ctxInputInterface.

References CTX_EXPORT.

◆ getSampleWidth()

const gzUInt32 & ctxIOImageSampler::getSampleWidth ( ) const

References CTX_EXPORT.

◆ getSampleWidthStep()

const gzUInt32 & ctxIOImageSampler::getSampleWidthStep ( ) const

References CTX_EXPORT.

◆ getSampleWidthStride()

const gzUInt32 & ctxIOImageSampler::getSampleWidthStride ( ) const

References CTX_EXPORT.

◆ getScaleSteps()

const gzUInt32 & ctxIOImageSampler::getScaleSteps ( ) const

References CTX_EXPORT.

◆ getStartAngle()

const gzFloat & ctxIOImageSampler::getStartAngle ( ) const

References CTX_EXPORT.

◆ getUseResultArray()

const gzBool & ctxIOImageSampler::getUseResultArray ( ) const

References CTX_EXPORT.

◆ getValue_U()

virtual gzFloat ctxIOImageSampler::getValue_U ( ctxContext * context,
gzUInt32 index,
gzUInt32 currentSample )
virtual

Implements ctxInputOutputUnifier.

References CTX_EXPORT.

◆ getWidthDivisions()

gzUInt32 ctxIOImageSampler::getWidthDivisions ( )

References CTX_EXPORT.

◆ onLoadImage()

virtual gzVoid ctxIOImageSampler::onLoadImage ( const gzString & name,
const gzString & path,
gzUInt32 id )
virtual

Implements ctxImageNotifyInterface.

References CTX_EXPORT.

◆ sampleImage()

gzFloat ctxIOImageSampler::sampleImage ( gzUInt32 index,
gzFloat x,
gzFloat y,
gzInt32 depth )

References CTX_EXPORT.

◆ sampleImageInterpolated()

gzFloat ctxIOImageSampler::sampleImageInterpolated ( gzUInt32 index,
gzDouble x,
gzDouble y,
gzInt32 depth,
ctxImageInterpolationType interpolation )

Explicit nearest/linear sampling through the existing image accessor.

The four-argument sampleImage retains its existing cubic interpolation. Coordinates are integer pixel centers; this adds no sampler state.

References CTX_EXPORT.

◆ setAccessor()

gzVoid ctxIOImageSampler::setAccessor ( const ctxImageAccessInterfacePtr & prop)

◆ setDeltaAngle()

gzVoid ctxIOImageSampler::setDeltaAngle ( const gzFloat & prop)

◆ setFlipX()

gzVoid ctxIOImageSampler::setFlipX ( const gzBool & prop)

◆ setFlipXY()

gzVoid ctxIOImageSampler::setFlipXY ( const gzBool & prop)

◆ setFlipY()

gzVoid ctxIOImageSampler::setFlipY ( const gzBool & prop)

◆ setIntervall()

gzVoid ctxIOImageSampler::setIntervall ( const gzUInt32 & prop)

◆ setReservedSamples()

gzVoid ctxIOImageSampler::setReservedSamples ( const gzUInt32 & prop)

◆ setRotations()

gzVoid ctxIOImageSampler::setRotations ( const gzUInt32 & prop)

◆ setSampleDepth()

gzVoid ctxIOImageSampler::setSampleDepth ( const gzUInt32 & prop)

◆ setSampleDepthStep()

gzVoid ctxIOImageSampler::setSampleDepthStep ( const gzUInt32 & prop)

◆ setSampleDepthStride()

gzVoid ctxIOImageSampler::setSampleDepthStride ( const gzUInt32 & prop)

◆ setSampleHeight()

gzVoid ctxIOImageSampler::setSampleHeight ( const gzUInt32 & prop)

◆ setSampleHeightStep()

gzVoid ctxIOImageSampler::setSampleHeightStep ( const gzUInt32 & prop)

◆ setSampleHeightStride()

gzVoid ctxIOImageSampler::setSampleHeightStride ( const gzUInt32 & prop)

◆ setSampleWidth()

gzVoid ctxIOImageSampler::setSampleWidth ( const gzUInt32 & prop)

◆ setSampleWidthStep()

gzVoid ctxIOImageSampler::setSampleWidthStep ( const gzUInt32 & prop)

◆ setSampleWidthStride()

gzVoid ctxIOImageSampler::setSampleWidthStride ( const gzUInt32 & prop)

◆ setScaleSteps()

gzVoid ctxIOImageSampler::setScaleSteps ( const gzUInt32 & prop)

◆ setStartAngle()

gzVoid ctxIOImageSampler::setStartAngle ( const gzFloat & prop)

◆ setUseResultArray()

gzVoid ctxIOImageSampler::setUseResultArray ( const gzBool & prop)

The documentation for this class was generated from the following file: