AMD rocAL - Augmentation API

AMD rocAL - Augmentation API#

rocAL: API: AMD rocAL - Augmentation API
API: AMD rocAL - Augmentation API

The AMD rocAL augmentation functions. More...

Functions

RocalImage ROCAL_API_CALL rocalSequenceRearrange (RocalContext context, RocalImage input, unsigned int *new_order, unsigned int new_sequence_length, unsigned int sequence_length, bool is_output)
 Rearranges the order of the frames in the sequences with respect to new_order. new_order can have values in the range [0, sequence_length). Frames can be repeated or dropped in the new_order. More...
 
RocalImage ROCAL_API_CALL rocalResize (RocalContext context, RocalImage input, unsigned dest_width, unsigned dest_height, bool is_output, RocalResizeScalingMode scaling_mode=ROCAL_SCALING_MODE_STRETCH, std::vector< unsigned > max_size={}, unsigned resize_shorter=0, unsigned resize_longer=0, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION)
 Accepts U8 and RGB24 input. More...
 
RocalImage ROCAL_API_CALL rocalResizeMirrorNormalize (RocalContext p_context, RocalImage p_input, unsigned dest_width, unsigned dest_height, std::vector< float > &mean, std::vector< float > &std_dev, bool is_output, RocalIntParam p_mirror=NULL)
 Accepts U8 and RGB24 input. More...
 
RocalImage ROCAL_API_CALL rocalCropResize (RocalContext context, RocalImage input, unsigned dest_width, unsigned dest_height, bool is_output, RocalFloatParam area=NULL, RocalFloatParam aspect_ratio=NULL, RocalFloatParam x_center_drift=NULL, RocalFloatParam y_center_drift=NULL)
 Accepts U8 and RGB24 input. More...
 
RocalImage ROCAL_API_CALL rocalCropResizeFixed (RocalContext context, RocalImage input, unsigned dest_width, unsigned dest_height, bool is_output, float area, float aspect_ratio, float x_center_drift, float y_center_drift)
 Accepts U8 and RGB24 input. Crops the input image to a new area and same aspect ratio. More...
 
RocalImage ROCAL_API_CALL rocalRotate (RocalContext context, RocalImage input, bool is_output, RocalFloatParam angle=NULL, unsigned dest_width=0, unsigned dest_height=0)
 Accepts U8 and RGB24 input. The output image dimension can be set to new values allowing the rotated image to fit, otherwise; the image is cropped to fit the result. More...
 
RocalImage ROCAL_API_CALL rocalRotateFixed (RocalContext context, RocalImage input, float angle, bool is_output, unsigned dest_width=0, unsigned dest_height=0)
 Accepts U8 and RGB24 input. The output image dimension can be set to new values allowing the rotated image to fit, otherwise; the image is cropped to fit the result. More...
 
RocalImage ROCAL_API_CALL rocalBrightness (RocalContext context, RocalImage input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalBrightnessFixed (RocalContext context, RocalImage input, float alpha, float beta, bool is_output)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalGamma (RocalContext context, RocalImage input, bool is_output, RocalFloatParam alpha=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalGammaFixed (RocalContext context, RocalImage input, float alpha, bool is_output)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalContrast (RocalContext context, RocalImage input, bool is_output, RocalIntParam min=NULL, RocalIntParam max=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalContrastFixed (RocalContext context, RocalImage input, unsigned min, unsigned max, bool is_output)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalFlip (RocalContext context, RocalImage input, bool is_output, RocalIntParam flip_axis=NULL)
 
RocalImage ROCAL_API_CALL rocalFlipFixed (RocalContext context, RocalImage input, int flip_axis, bool is_output)
 
RocalImage ROCAL_API_CALL rocalBlur (RocalContext context, RocalImage input, bool is_output, RocalIntParam sdev=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalBlurFixed (RocalContext context, RocalImage input, int sdev, bool is_output)
 
RocalImage ROCAL_API_CALL rocalBlend (RocalContext context, RocalImage input1, RocalImage input2, bool is_output, RocalFloatParam ratio=NULL)
 Blends two input images given the ratio: output = input1*ratio + input2*(1-ratio) More...
 
RocalImage ROCAL_API_CALL rocalBlendFixed (RocalContext context, RocalImage input1, RocalImage input2, float ratio, bool is_output)
 Blends two input images given the ratio: output = input1*ratio + input2*(1-ratio) More...
 
RocalImage ROCAL_API_CALL rocalWarpAffine (RocalContext context, RocalImage input, bool is_output, unsigned dest_height=0, unsigned dest_width=0, RocalFloatParam x0=NULL, RocalFloatParam x1=NULL, RocalFloatParam y0=NULL, RocalFloatParam y1=NULL, RocalFloatParam o0=NULL, RocalFloatParam o1=NULL)
 
RocalImage ROCAL_API_CALL rocalWarpAffineFixed (RocalContext context, RocalImage input, float x0, float x1, float y0, float y1, float o0, float o1, bool is_output, unsigned int dest_height=0, unsigned int dest_width=0)
 
RocalImage ROCAL_API_CALL rocalFishEye (RocalContext context, RocalImage input, bool is_output)
 
RocalImage ROCAL_API_CALL rocalVignette (RocalContext context, RocalImage input, bool is_output, RocalFloatParam sdev=NULL)
 
RocalImage ROCAL_API_CALL rocalVignetteFixed (RocalContext context, RocalImage input, float sdev, bool is_output)
 
RocalImage ROCAL_API_CALL rocalJitter (RocalContext context, RocalImage input, bool is_output, RocalIntParam kernel_size=NULL)
 
RocalImage ROCAL_API_CALL rocalJitterFixed (RocalContext context, RocalImage input, int kernel_size, bool is_output)
 
RocalImage ROCAL_API_CALL rocalSnPNoise (RocalContext context, RocalImage input, bool is_output, RocalFloatParam sdev=NULL)
 
RocalImage ROCAL_API_CALL rocalSnPNoiseFixed (RocalContext context, RocalImage input, float sdev, bool is_output)
 
RocalImage ROCAL_API_CALL rocalSnow (RocalContext context, RocalImage input, bool is_output, RocalFloatParam shift=NULL)
 
RocalImage ROCAL_API_CALL rocalSnowFixed (RocalContext context, RocalImage input, float shift, bool is_output)
 
RocalImage ROCAL_API_CALL rocalRain (RocalContext context, RocalImage input, bool is_output, RocalFloatParam rain_value=NULL, RocalIntParam rain_width=NULL, RocalIntParam rain_height=NULL, RocalFloatParam rain_transparency=NULL)
 
RocalImage ROCAL_API_CALL rocalRainFixed (RocalContext context, RocalImage input, float rain_value, int rain_width, int rain_height, float rain_transparency, bool is_output)
 
RocalImage ROCAL_API_CALL rocalColorTemp (RocalContext context, RocalImage input, bool is_output, RocalIntParam adjustment=NULL)
 
RocalImage ROCAL_API_CALL rocalColorTempFixed (RocalContext context, RocalImage input, int adjustment, bool is_output)
 
RocalImage ROCAL_API_CALL rocalFog (RocalContext context, RocalImage input, bool is_output, RocalFloatParam fog_value=NULL)
 
RocalImage ROCAL_API_CALL rocalFogFixed (RocalContext context, RocalImage input, float fog_value, bool is_output)
 
RocalImage ROCAL_API_CALL rocalLensCorrection (RocalContext context, RocalImage input, bool is_output, RocalFloatParam strength=NULL, RocalFloatParam zoom=NULL)
 
RocalImage ROCAL_API_CALL rocalLensCorrectionFixed (RocalContext context, RocalImage input, float strength, float zoom, bool is_output)
 
RocalImage ROCAL_API_CALL rocalPixelate (RocalContext context, RocalImage input, bool is_output)
 
RocalImage ROCAL_API_CALL rocalExposure (RocalContext context, RocalImage input, bool is_output, RocalFloatParam shift=NULL)
 
RocalImage ROCAL_API_CALL rocalExposureFixed (RocalContext context, RocalImage input, float shift, bool is_output)
 
RocalImage ROCAL_API_CALL rocalHue (RocalContext context, RocalImage input, bool is_output, RocalFloatParam hue=NULL)
 
RocalImage ROCAL_API_CALL rocalHueFixed (RocalContext context, RocalImage input, float hue, bool is_output)
 
RocalImage ROCAL_API_CALL rocalSaturation (RocalContext context, RocalImage input, bool is_output, RocalFloatParam sat=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalSaturationFixed (RocalContext context, RocalImage input, float sat, bool is_output)
 rocalSaturationFixed More...
 
RocalImage ROCAL_API_CALL rocalCopy (RocalContext context, RocalImage input, bool is_output)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalNop (RocalContext context, RocalImage input, bool is_output)
 
RocalImage ROCAL_API_CALL rocalColorTwist (RocalContext context, RocalImage input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL, RocalFloatParam hue=NULL, RocalFloatParam sat=NULL)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalColorTwistFixed (RocalContext context, RocalImage input, float alpha, float beta, float hue, float sat, bool is_output)
 Accepts U8 and RGB24 inputs. More...
 
RocalImage ROCAL_API_CALL rocalCropMirrorNormalize (RocalContext context, RocalImage input, unsigned crop_depth, unsigned crop_height, unsigned crop_width, float start_x, float start_y, float start_z, std::vector< float > &mean, std::vector< float > &std_dev, bool is_output, RocalIntParam mirror=NULL)
 rocalCropMirrorNormalize More...
 
RocalImage ROCAL_API_CALL rocalCrop (RocalContext context, RocalImage input, bool is_output, RocalFloatParam crop_width=NULL, RocalFloatParam crop_height=NULL, RocalFloatParam crop_depth=NULL, RocalFloatParam crop_pox_x=NULL, RocalFloatParam crop_pos_y=NULL, RocalFloatParam crop_pos_z=NULL)
 rocalCrop More...
 
RocalImage ROCAL_API_CALL rocalCropFixed (RocalContext context, RocalImage input, unsigned crop_width, unsigned crop_height, unsigned crop_depth, bool is_output, float crop_pox_x, float crop_pos_y, float crop_pos_z)
 rocalCropFixed More...
 
RocalImage ROCAL_API_CALL rocalCropCenterFixed (RocalContext context, RocalImage input, unsigned crop_width, unsigned crop_height, unsigned crop_depth, bool output)
 rocalCropCenterFixed More...
 
RocalImage ROCAL_API_CALL rocalResizeCropMirrorFixed (RocalContext context, RocalImage input, unsigned dest_width, unsigned dest_height, bool is_output, unsigned crop_h, unsigned crop_w, RocalIntParam mirror)
 rocalResizeCropMirrorFixed More...
 
RocalImage ROCAL_API_CALL rocalResizeCropMirror (RocalContext context, RocalImage input, unsigned dest_width, unsigned dest_height, bool is_output, RocalFloatParam crop_height=NULL, RocalFloatParam crop_width=NULL, RocalIntParam mirror=NULL)
 rocalResizeCropMirror More...
 
RocalImage ROCAL_API_CALL rocalRandomCrop (RocalContext context, RocalImage input, bool is_output, RocalFloatParam crop_area_factor=NULL, RocalFloatParam crop_aspect_ratio=NULL, RocalFloatParam crop_pos_x=NULL, RocalFloatParam crop_pos_y=NULL, int num_of_attempts=20)
 Accepts U8 and RGB24 inputs and Ouptus Cropped Images, valid bounding boxes and labels. More...
 
RocalImage ROCAL_API_CALL rocalSSDRandomCrop (RocalContext context, RocalImage input, bool is_output, RocalFloatParam threshold=NULL, RocalFloatParam crop_area_factor=NULL, RocalFloatParam crop_aspect_ratio=NULL, RocalFloatParam crop_pos_x=NULL, RocalFloatParam crop_pos_y=NULL, int num_of_attempts=20)
 Accepts U8 and RGB24 inputs and Ouptus Cropped Images, valid bounding boxes and labels. More...
 

Detailed Description

The AMD rocAL augmentation functions.

Function Documentation

◆ rocalBlend()

RocalImage ROCAL_API_CALL rocalBlend ( RocalContext  context,
RocalImage  input1,
RocalImage  input2,
bool  is_output,
RocalFloatParam  ratio = NULL 
)

Blends two input images given the ratio: output = input1*ratio + input2*(1-ratio)

Parameters
contextcontext for the pipeline.
input1
input2
is_output
ratioRocal parameter defining the blending ratio, should be between 0.0 and 1.0.
Returns

◆ rocalBlendFixed()

RocalImage ROCAL_API_CALL rocalBlendFixed ( RocalContext  context,
RocalImage  input1,
RocalImage  input2,
float  ratio,
bool  is_output 
)

Blends two input images given the ratio: output = input1*ratio + input2*(1-ratio)

Parameters
contextcontext for the pipeline.
input1
input2
ratioFloat value defining the blending ratio, should be between 0.0 and 1.0.
is_output
Returns

◆ rocalBlur()

RocalImage ROCAL_API_CALL rocalBlur ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalIntParam  sdev = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
sdev
Returns

◆ rocalBlurFixed()

RocalImage ROCAL_API_CALL rocalBlurFixed ( RocalContext  context,
RocalImage  input,
int  sdev,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
sdev
is_output
Returns

◆ rocalBrightness()

RocalImage ROCAL_API_CALL rocalBrightness ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  alpha = NULL,
RocalFloatParam  beta = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
alpha
beta
Returns

◆ rocalBrightnessFixed()

RocalImage ROCAL_API_CALL rocalBrightnessFixed ( RocalContext  context,
RocalImage  input,
float  alpha,
float  beta,
bool  is_output 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
alpha
beta
is_output
Returns

◆ rocalColorTemp()

RocalImage ROCAL_API_CALL rocalColorTemp ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalIntParam  adjustment = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
adjustment
Returns

◆ rocalColorTempFixed()

RocalImage ROCAL_API_CALL rocalColorTempFixed ( RocalContext  context,
RocalImage  input,
int  adjustment,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
adjustment
is_output
Returns

◆ rocalColorTwist()

RocalImage ROCAL_API_CALL rocalColorTwist ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  alpha = NULL,
RocalFloatParam  beta = NULL,
RocalFloatParam  hue = NULL,
RocalFloatParam  sat = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
alpha
beta
hue
sat
Returns

◆ rocalColorTwistFixed()

RocalImage ROCAL_API_CALL rocalColorTwistFixed ( RocalContext  context,
RocalImage  input,
float  alpha,
float  beta,
float  hue,
float  sat,
bool  is_output 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
alpha
beta
hue
sat
Returns

◆ rocalContrast()

RocalImage ROCAL_API_CALL rocalContrast ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalIntParam  min = NULL,
RocalIntParam  max = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
min
max
Returns

◆ rocalContrastFixed()

RocalImage ROCAL_API_CALL rocalContrastFixed ( RocalContext  context,
RocalImage  input,
unsigned  min,
unsigned  max,
bool  is_output 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
min
max
is_output
Returns

◆ rocalCopy()

RocalImage ROCAL_API_CALL rocalCopy ( RocalContext  context,
RocalImage  input,
bool  is_output 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
min
max
Returns

◆ rocalCrop()

RocalImage ROCAL_API_CALL rocalCrop ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  crop_width = NULL,
RocalFloatParam  crop_height = NULL,
RocalFloatParam  crop_depth = NULL,
RocalFloatParam  crop_pox_x = NULL,
RocalFloatParam  crop_pos_y = NULL,
RocalFloatParam  crop_pos_z = NULL 
)

rocalCrop

Parameters
contextcontext for the pipeline.

◆ rocalCropCenterFixed()

RocalImage ROCAL_API_CALL rocalCropCenterFixed ( RocalContext  context,
RocalImage  input,
unsigned  crop_width,
unsigned  crop_height,
unsigned  crop_depth,
bool  output 
)

rocalCropCenterFixed

Parameters
contextcontext for the pipeline.
crop_width

◆ rocalCropFixed()

RocalImage ROCAL_API_CALL rocalCropFixed ( RocalContext  context,
RocalImage  input,
unsigned  crop_width,
unsigned  crop_height,
unsigned  crop_depth,
bool  is_output,
float  crop_pox_x,
float  crop_pos_y,
float  crop_pos_z 
)

rocalCropFixed

Parameters
contextcontext for the pipeline.

◆ rocalCropMirrorNormalize()

RocalImage ROCAL_API_CALL rocalCropMirrorNormalize ( RocalContext  context,
RocalImage  input,
unsigned  crop_depth,
unsigned  crop_height,
unsigned  crop_width,
float  start_x,
float  start_y,
float  start_z,
std::vector< float > &  mean,
std::vector< float > &  std_dev,
bool  is_output,
RocalIntParam  mirror = NULL 
)

rocalCropMirrorNormalize

Parameters
contextcontext for the pipeline.

◆ rocalCropResize()

RocalImage ROCAL_API_CALL rocalCropResize ( RocalContext  context,
RocalImage  input,
unsigned  dest_width,
unsigned  dest_height,
bool  is_output,
RocalFloatParam  area = NULL,
RocalFloatParam  aspect_ratio = NULL,
RocalFloatParam  x_center_drift = NULL,
RocalFloatParam  y_center_drift = NULL 
)

Accepts U8 and RGB24 input.

Parameters
contextcontext for the pipeline.
input
dest_width
dest_height
is_output
area
x_center_drift
y_center_drift
Returns

◆ rocalCropResizeFixed()

RocalImage ROCAL_API_CALL rocalCropResizeFixed ( RocalContext  context,
RocalImage  input,
unsigned  dest_width,
unsigned  dest_height,
bool  is_output,
float  area,
float  aspect_ratio,
float  x_center_drift,
float  y_center_drift 
)

Accepts U8 and RGB24 input. Crops the input image to a new area and same aspect ratio.

Parameters
contextcontext for the pipeline.
input
dest_width
dest_height
is_output
area
x_center_drift
y_center_drift
Returns

◆ rocalExposure()

RocalImage ROCAL_API_CALL rocalExposure ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  shift = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
shift
Returns

◆ rocalExposureFixed()

RocalImage ROCAL_API_CALL rocalExposureFixed ( RocalContext  context,
RocalImage  input,
float  shift,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
shift
Returns

◆ rocalFishEye()

RocalImage ROCAL_API_CALL rocalFishEye ( RocalContext  context,
RocalImage  input,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
Returns

◆ rocalFlip()

RocalImage ROCAL_API_CALL rocalFlip ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalIntParam  flip_axis = NULL 
)
Parameters
contextcontext for the pipeline.
input
axis
is_output
Returns

◆ rocalFlipFixed()

RocalImage ROCAL_API_CALL rocalFlipFixed ( RocalContext  context,
RocalImage  input,
int  flip_axis,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
axis
is_output
Returns

◆ rocalFog()

RocalImage ROCAL_API_CALL rocalFog ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  fog_value = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
fog_value
Returns

◆ rocalFogFixed()

RocalImage ROCAL_API_CALL rocalFogFixed ( RocalContext  context,
RocalImage  input,
float  fog_value,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
fog_value
is_output
Returns

◆ rocalGamma()

RocalImage ROCAL_API_CALL rocalGamma ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  alpha = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
alpha
Returns

◆ rocalGammaFixed()

RocalImage ROCAL_API_CALL rocalGammaFixed ( RocalContext  context,
RocalImage  input,
float  alpha,
bool  is_output 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
alpha
is_output
Returns

◆ rocalHue()

RocalImage ROCAL_API_CALL rocalHue ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  hue = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
Returns

◆ rocalHueFixed()

RocalImage ROCAL_API_CALL rocalHueFixed ( RocalContext  context,
RocalImage  input,
float  hue,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
hue
Returns

◆ rocalJitter()

RocalImage ROCAL_API_CALL rocalJitter ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalIntParam  kernel_size = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
min
max
Returns

◆ rocalJitterFixed()

RocalImage ROCAL_API_CALL rocalJitterFixed ( RocalContext  context,
RocalImage  input,
int  kernel_size,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
min
max
is_output
Returns

◆ rocalLensCorrection()

RocalImage ROCAL_API_CALL rocalLensCorrection ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  strength = NULL,
RocalFloatParam  zoom = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
strength
zoom
Returns

◆ rocalLensCorrectionFixed()

RocalImage ROCAL_API_CALL rocalLensCorrectionFixed ( RocalContext  context,
RocalImage  input,
float  strength,
float  zoom,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
strength
zoom
is_output
Returns

◆ rocalNop()

RocalImage ROCAL_API_CALL rocalNop ( RocalContext  context,
RocalImage  input,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
Returns

◆ rocalPixelate()

RocalImage ROCAL_API_CALL rocalPixelate ( RocalContext  context,
RocalImage  input,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
Returns

◆ rocalRain()

RocalImage ROCAL_API_CALL rocalRain ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  rain_value = NULL,
RocalIntParam  rain_width = NULL,
RocalIntParam  rain_height = NULL,
RocalFloatParam  rain_transparency = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
rain_value
rain_width
rain_heigth
rain_transparency
Returns

◆ rocalRainFixed()

RocalImage ROCAL_API_CALL rocalRainFixed ( RocalContext  context,
RocalImage  input,
float  rain_value,
int  rain_width,
int  rain_height,
float  rain_transparency,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
is_output
rain_value
rain_width
rain_heigth
rain_transparency
Returns

◆ rocalRandomCrop()

RocalImage ROCAL_API_CALL rocalRandomCrop ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  crop_area_factor = NULL,
RocalFloatParam  crop_aspect_ratio = NULL,
RocalFloatParam  crop_pos_x = NULL,
RocalFloatParam  crop_pos_y = NULL,
int  num_of_attempts = 20 
)

Accepts U8 and RGB24 inputs and Ouptus Cropped Images, valid bounding boxes and labels.

Parameters
contextcontext for the pipeline.
input
num_of_attmpts
Returns

◆ rocalResize()

RocalImage ROCAL_API_CALL rocalResize ( RocalContext  context,
RocalImage  input,
unsigned  dest_width,
unsigned  dest_height,
bool  is_output,
RocalResizeScalingMode  scaling_mode = ROCAL_SCALING_MODE_STRETCH,
std::vector< unsigned >  max_size = {},
unsigned  resize_shorter = 0,
unsigned  resize_longer = 0,
RocalResizeInterpolationType  interpolation_type = ROCAL_LINEAR_INTERPOLATION 
)

Accepts U8 and RGB24 input.

Parameters
contextcontext for the pipeline.
input
dest_width
dest_height
is_output
scaling_modeThe resize scaling_mode to resize the image.
max_sizeLimits the size of the resized image.
resize_shorterThe length of the shorter dimension of the image.
resize_longerThe length of the larger dimension of the image.
interpolation_typeThe type of interpolation to be used for resize.
Returns

◆ rocalResizeCropMirror()

RocalImage ROCAL_API_CALL rocalResizeCropMirror ( RocalContext  context,
RocalImage  input,
unsigned  dest_width,
unsigned  dest_height,
bool  is_output,
RocalFloatParam  crop_height = NULL,
RocalFloatParam  crop_width = NULL,
RocalIntParam  mirror = NULL 
)

rocalResizeCropMirror

Parameters
contextcontext for the pipeline.

◆ rocalResizeCropMirrorFixed()

RocalImage ROCAL_API_CALL rocalResizeCropMirrorFixed ( RocalContext  context,
RocalImage  input,
unsigned  dest_width,
unsigned  dest_height,
bool  is_output,
unsigned  crop_h,
unsigned  crop_w,
RocalIntParam  mirror 
)

rocalResizeCropMirrorFixed

Parameters
contextcontext for the pipeline.

◆ rocalResizeMirrorNormalize()

RocalImage ROCAL_API_CALL rocalResizeMirrorNormalize ( RocalContext  p_context,
RocalImage  p_input,
unsigned  dest_width,
unsigned  dest_height,
std::vector< float > &  mean,
std::vector< float > &  std_dev,
bool  is_output,
RocalIntParam  p_mirror = NULL 
)

Accepts U8 and RGB24 input.

Parameters
contextRocal context
inputInput Rocal Image
dest_widthThe output width
dest_heightThe output height
meanThe channel mean values
std_devThe channel standard deviation values
is_outputTrue: the output image is needed by user and will be copied to output buffers using the data transfer API calls. False: the output image is just an intermediate image, user is not interested in using it directly. This option allows certain optimizations to be achieved.
p_mirrorParameter to enable horizontal flip for output image.
Returns

◆ rocalRotate()

RocalImage ROCAL_API_CALL rocalRotate ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  angle = NULL,
unsigned  dest_width = 0,
unsigned  dest_height = 0 
)

Accepts U8 and RGB24 input. The output image dimension can be set to new values allowing the rotated image to fit, otherwise; the image is cropped to fit the result.

Parameters
contextcontext for the pipeline. Rocal context
inputInput Rocal Image
is_outputTrue: the output image is needed by user and will be copied to output buffers using the data transfer API calls. False: the output image is just an intermediate image, user is not interested in using it directly. This option allows certain optimizations to be achieved.
angleRocal parameter defining the rotation angle value in degrees.
dest_widthThe output width
dest_heightThe output height
Returns
Returns a new image that keeps the result.

◆ rocalRotateFixed()

RocalImage ROCAL_API_CALL rocalRotateFixed ( RocalContext  context,
RocalImage  input,
float  angle,
bool  is_output,
unsigned  dest_width = 0,
unsigned  dest_height = 0 
)

Accepts U8 and RGB24 input. The output image dimension can be set to new values allowing the rotated image to fit, otherwise; the image is cropped to fit the result.

Parameters
contextcontext for the pipeline. Rocal context
inputInput Rocal Image
dest_widthThe output width
dest_heightThe output height
is_outputIs the output image part of the graph output
angleThe rotation angle value in degrees.
Returns
Returns a new image that keeps the result.

◆ rocalSaturation()

RocalImage ROCAL_API_CALL rocalSaturation ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  sat = NULL 
)

Accepts U8 and RGB24 inputs.

Parameters
contextcontext for the pipeline.
input
is_output
min
max
Returns

◆ rocalSaturationFixed()

RocalImage ROCAL_API_CALL rocalSaturationFixed ( RocalContext  context,
RocalImage  input,
float  sat,
bool  is_output 
)

rocalSaturationFixed

Parameters
contextcontext for the pipeline.

◆ rocalSequenceRearrange()

RocalImage ROCAL_API_CALL rocalSequenceRearrange ( RocalContext  context,
RocalImage  input,
unsigned int *  new_order,
unsigned int  new_sequence_length,
unsigned int  sequence_length,
bool  is_output 
)

Rearranges the order of the frames in the sequences with respect to new_order. new_order can have values in the range [0, sequence_length). Frames can be repeated or dropped in the new_order.

Note
: Accepts U8 and RGB24 input.
Parameters
contextcontext for the pipeline.
input
new_order
new_sequence_length
sequence_length
is_output
Returns

◆ rocalSnow()

RocalImage ROCAL_API_CALL rocalSnow ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  shift = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
sdev
Returns

◆ rocalSnowFixed()

RocalImage ROCAL_API_CALL rocalSnowFixed ( RocalContext  context,
RocalImage  input,
float  shift,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
sdev
is_output
Returns

◆ rocalSnPNoise()

RocalImage ROCAL_API_CALL rocalSnPNoise ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  sdev = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
sdev
Returns

◆ rocalSnPNoiseFixed()

RocalImage ROCAL_API_CALL rocalSnPNoiseFixed ( RocalContext  context,
RocalImage  input,
float  sdev,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
sdev
is_output
Returns

◆ rocalSSDRandomCrop()

RocalImage ROCAL_API_CALL rocalSSDRandomCrop ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  threshold = NULL,
RocalFloatParam  crop_area_factor = NULL,
RocalFloatParam  crop_aspect_ratio = NULL,
RocalFloatParam  crop_pos_x = NULL,
RocalFloatParam  crop_pos_y = NULL,
int  num_of_attempts = 20 
)

Accepts U8 and RGB24 inputs and Ouptus Cropped Images, valid bounding boxes and labels.

Parameters
contextcontext for the pipeline.
input
IOU_threshold
num_of_attmpts
Returns

◆ rocalVignette()

RocalImage ROCAL_API_CALL rocalVignette ( RocalContext  context,
RocalImage  input,
bool  is_output,
RocalFloatParam  sdev = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
sdev
Returns

◆ rocalVignetteFixed()

RocalImage ROCAL_API_CALL rocalVignetteFixed ( RocalContext  context,
RocalImage  input,
float  sdev,
bool  is_output 
)
Parameters
contextcontext for the pipeline.
input
sdev
is_output
Returns

◆ rocalWarpAffine()

RocalImage ROCAL_API_CALL rocalWarpAffine ( RocalContext  context,
RocalImage  input,
bool  is_output,
unsigned  dest_height = 0,
unsigned  dest_width = 0,
RocalFloatParam  x0 = NULL,
RocalFloatParam  x1 = NULL,
RocalFloatParam  y0 = NULL,
RocalFloatParam  y1 = NULL,
RocalFloatParam  o0 = NULL,
RocalFloatParam  o1 = NULL 
)
Parameters
contextcontext for the pipeline.
input
is_output
x0
x1
y0
y1
o0
o1
dest_height
dest_width
Returns

◆ rocalWarpAffineFixed()

RocalImage ROCAL_API_CALL rocalWarpAffineFixed ( RocalContext  context,
RocalImage  input,
float  x0,
float  x1,
float  y0,
float  y1,
float  o0,
float  o1,
bool  is_output,
unsigned int  dest_height = 0,
unsigned int  dest_width = 0 
)
Parameters
contextcontext for the pipeline.
input
x0
x1
y0
y1
o0
o1
is_output
dest_height
dest_width
Returns