NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::filter::boundary Namespace Reference

Functions

template<typename dtype >
NdArray< dtype > addBoundary1d (const NdArray< dtype > &inImage, Boundary inBoundaryType, uint32 inKernalSize, dtype inConstantValue=0)
 
template<typename dtype >
NdArray< dtype > addBoundary2d (const NdArray< dtype > &inImage, Boundary inBoundaryType, uint32 inKernalSize, dtype inConstantValue=0)
 
template<typename dtype >
NdArray< dtype > constant1d (const NdArray< dtype > &inImage, uint32 inBoundarySize, dtype inConstantValue)
 
template<typename dtype >
NdArray< dtype > constant2d (const NdArray< dtype > &inImage, uint32 inBoundarySize, dtype inConstantValue)
 
template<typename dtype >
void fillCorners (NdArray< dtype > &inArray, uint32 inBorderWidth)
 
template<typename dtype >
void fillCorners (NdArray< dtype > &inArray, uint32 inBorderWidth, dtype inFillValue)
 
template<typename dtype >
NdArray< dtype > mirror1d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > mirror2d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > nearest1d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > nearest2d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > reflect1d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > reflect2d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > trimBoundary1d (const NdArray< dtype > &inImageWithBoundary, uint32 inSize)
 
template<typename dtype >
NdArray< dtype > trimBoundary2d (const NdArray< dtype > &inImageWithBoundary, uint32 inSize)
 
template<typename dtype >
NdArray< dtype > wrap1d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 
template<typename dtype >
NdArray< dtype > wrap2d (const NdArray< dtype > &inImage, uint32 inBoundarySize)
 

Function Documentation

◆ addBoundary1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::addBoundary1d ( const NdArray< dtype > &  inImage,
Boundary  inBoundaryType,
uint32  inKernalSize,
dtype  inConstantValue = 0 
)

Wrap boundary

Parameters
inImage
inBoundaryType
inKernalSize
inConstantValue(default 0)
Returns
NdArray

◆ addBoundary2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::addBoundary2d ( const NdArray< dtype > &  inImage,
Boundary  inBoundaryType,
uint32  inKernalSize,
dtype  inConstantValue = 0 
)

Wrap boundary

Parameters
inImage
inBoundaryType
inKernalSize
inConstantValue(default 0)
Returns
NdArray

◆ constant1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::constant1d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize,
dtype  inConstantValue 
)

Constant boundary1d

Parameters
inImage
inBoundarySize
inConstantValue
Returns
NdArray

◆ constant2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::constant2d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize,
dtype  inConstantValue 
)

Constant boundary

Parameters
inImage
inBoundarySize
inConstantValue
Returns
NdArray

◆ fillCorners() [1/2]

template<typename dtype >
void nc::filter::boundary::fillCorners ( NdArray< dtype > &  inArray,
uint32  inBorderWidth 
)

extends the corner values

Parameters
inArray
inBorderWidth

◆ fillCorners() [2/2]

template<typename dtype >
void nc::filter::boundary::fillCorners ( NdArray< dtype > &  inArray,
uint32  inBorderWidth,
dtype  inFillValue 
)

extends the corner values

Parameters
inArray
inBorderWidth
inFillValue

◆ mirror1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::mirror1d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Mirror boundary1d

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ mirror2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::mirror2d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Mirror boundary

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ nearest1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::nearest1d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Nearest boundary1d

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ nearest2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::nearest2d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Nearest boundary

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ reflect1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::reflect1d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Reflects the boundaries

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ reflect2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::reflect2d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Reflects the boundaries

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ trimBoundary1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::trimBoundary1d ( const NdArray< dtype > &  inImageWithBoundary,
uint32  inSize 
)

trims the boundary off to make the image back to the original size

Parameters
inImageWithBoundary
inSize
Returns
NdArray

◆ trimBoundary2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::trimBoundary2d ( const NdArray< dtype > &  inImageWithBoundary,
uint32  inSize 
)

trims the boundary off to make the image back to the original size

Parameters
inImageWithBoundary
inSize
Returns
NdArray

◆ wrap1d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::wrap1d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Wrap boundary1d

Parameters
inImage
inBoundarySize
Returns
NdArray

◆ wrap2d()

template<typename dtype >
NdArray< dtype > nc::filter::boundary::wrap2d ( const NdArray< dtype > &  inImage,
uint32  inBoundarySize 
)

Wrap boundary

Parameters
inImage
inBoundarySize
Returns
NdArray