Compute Library
 21.02
NEAbsoluteDifference Class Reference

Basic function to run NEAbsoluteDifferenceKernel. More...

#include <NEAbsoluteDifference.h>

Collaboration diagram for NEAbsoluteDifference:
[legend]

Public Member Functions

 NEAbsoluteDifference ()=default
 Default constructor. More...
 
 NEAbsoluteDifference (const NEAbsoluteDifference &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
NEAbsoluteDifferenceoperator= (const NEAbsoluteDifference &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 NEAbsoluteDifference (NEAbsoluteDifference &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
NEAbsoluteDifferenceoperator= (NEAbsoluteDifference &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
 ~NEAbsoluteDifference ()
 Default destructor. More...
 
void configure (const ITensor *input1, const ITensor *input2, ITensor *output)
 Set the inputs and output images. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to run NEAbsoluteDifferenceKernel.

Note
The image data type for the inputs must be U8 or S16
The function calculates the absolute difference also when the 2 inputs have different image data types
Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 41 of file NEAbsoluteDifference.h.

Constructor & Destructor Documentation

◆ NEAbsoluteDifference() [1/3]

NEAbsoluteDifference ( )
default

Default constructor.

◆ NEAbsoluteDifference() [2/3]

Prevent instances of this class from being copied (As this class contains pointers)

◆ NEAbsoluteDifference() [3/3]

Prevent instances of this class from being moved (As this class contains non movable objects)

◆ ~NEAbsoluteDifference()

~NEAbsoluteDifference ( )
default

Default destructor.

Member Function Documentation

◆ configure()

void configure ( const ITensor input1,
const ITensor input2,
ITensor output 
)

Set the inputs and output images.

Parameters
[in]input1Source tensor. Data types supported: U8/S16.
[in]input2Source tensor. Data types supported: U8/S16.
[out]outputDestination tensor. Data types supported: U8/S16.

Definition at line 34 of file NEAbsoluteDifference.cpp.

35 {
36  auto k = std::make_unique<NEAbsoluteDifferenceKernel>();
37  k->configure(input1, input2, output);
38  _kernel = std::move(k);
39 }

◆ operator=() [1/2]

NEAbsoluteDifference& operator= ( const NEAbsoluteDifference )
delete

Prevent instances of this class from being copied (As this class contains pointers)

◆ operator=() [2/2]

NEAbsoluteDifference& operator= ( NEAbsoluteDifference &&  )
delete

Prevent instances of this class from being moved (As this class contains non movable objects)


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