oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Spatial Transforms

Functions

Profile oevislib_net.Profile.Crop (int inStart, Optional< int > inLength=null)
 Crops the profile, given a starting index and the new length.
void oevislib_net.Profile.Resize (int inSize)
 Changes the current size of the profile (removing the other values) (in-place).
Profile oevislib_net.Profile.Resize (int inSize, ProfileResizeMethod inResizeMethod)
 Changes the size of the profile, preserving its shape.
Profile oevislib_net.Profile.Rotate (int inShift)
 Moves the last n elements before the first one.
Profile oevislib_net.Profile.ShrinkNTimes (int inN)
 Reduces the size of a profile N-times by averaging each N consecutive elements.
Profile oevislib_net.Profile.Uncrop (int inStart, int inLength)
 Extends the profile by adding zeros at the beginning and at the end of the profile to fill the new length.

Detailed Description

Function Documentation

◆ Crop()

Profile oevislib_net.Profile.Crop ( int inStart,
Optional< int > inLength = null )
inline

Crops the profile, given a starting index and the new length.

Parameters
inStartIndex of the first element to include. Range: [0, +inf).
inLengthLength of the output profile (if Null all elements from inStart are included). Range: [0, +inf).
Returns
Cropped profile.

◆ Resize() [1/2]

void oevislib_net.Profile.Resize ( int inSize)
inline

Changes the current size of the profile (removing the other values) (in-place).

Parameters
inSizeNew size. Range: [1, +inf).

◆ Resize() [2/2]

Profile oevislib_net.Profile.Resize ( int inSize,
ProfileResizeMethod inResizeMethod )
inline

Changes the size of the profile, preserving its shape.

Parameters
inSizeNew size. Range: [1, +inf).
inResizeMethodInterpolation method.
Returns
Resized profile.

◆ Rotate()

Profile oevislib_net.Profile.Rotate ( int inShift)
inline

Moves the last n elements before the first one.

Parameters
inShiftRotated elements.
Returns
Rotated profile.

◆ ShrinkNTimes()

Profile oevislib_net.Profile.ShrinkNTimes ( int inN)
inline

Reduces the size of a profile N-times by averaging each N consecutive elements.

Parameters
inNScaling coefficient. Range: [0, +inf).
Returns
Shrunk profile.

◆ Uncrop()

Profile oevislib_net.Profile.Uncrop ( int inStart,
int inLength )
inline

Extends the profile by adding zeros at the beginning and at the end of the profile to fill the new length.

Parameters
inStartNumber of elements to be added at the beginning. Range: [0, +inf).
inLengthLength of the output profile. Range: [-1, +inf).
Returns
Output profile.