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
-
context context for the pipeline. input1 input2 is_output ratio Rocal 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
-
context context for the pipeline. input1 input2 ratio Float 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
-
context context for the pipeline. input is_output sdev
- Returns
◆ rocalBlurFixed()
RocalImage ROCAL_API_CALL rocalBlurFixed | ( | RocalContext | context, |
RocalImage | input, | ||
int | sdev, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input is_output adjustment
- Returns
◆ rocalColorTempFixed()
RocalImage ROCAL_API_CALL rocalColorTempFixed | ( | RocalContext | context, |
RocalImage | input, | ||
int | adjustment, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input is_output shift
- Returns
◆ rocalExposureFixed()
RocalImage ROCAL_API_CALL rocalExposureFixed | ( | RocalContext | context, |
RocalImage | input, | ||
float | shift, | ||
bool | is_output | ||
) |
- Parameters
-
context context for the pipeline. input is_output shift
- Returns
◆ rocalFishEye()
RocalImage ROCAL_API_CALL rocalFishEye | ( | RocalContext | context, |
RocalImage | input, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input is_output
- Returns
◆ rocalHueFixed()
RocalImage ROCAL_API_CALL rocalHueFixed | ( | RocalContext | context, |
RocalImage | input, | ||
float | hue, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input strength zoom is_output
- Returns
◆ rocalNop()
RocalImage ROCAL_API_CALL rocalNop | ( | RocalContext | context, |
RocalImage | input, | ||
bool | is_output | ||
) |
- Parameters
-
context context for the pipeline. input is_output
- Returns
◆ rocalPixelate()
RocalImage ROCAL_API_CALL rocalPixelate | ( | RocalContext | context, |
RocalImage | input, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input dest_width dest_height is_output scaling_mode The resize scaling_mode to resize the image. max_size Limits the size of the resized image. resize_shorter The length of the shorter dimension of the image. resize_longer The length of the larger dimension of the image. interpolation_type The 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
-
context context 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
-
context context 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
-
context Rocal context input Input Rocal Image dest_width The output width dest_height The output height mean The channel mean values std_dev The channel standard deviation values is_output True: 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_mirror Parameter 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
-
context context for the pipeline. Rocal context input Input Rocal Image is_output True: 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. angle Rocal parameter defining the rotation angle value in degrees. dest_width The output width dest_height The 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
-
context context for the pipeline. Rocal context input Input Rocal Image dest_width The output width dest_height The output height is_output Is the output image part of the graph output angle The 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
-
context context 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
-
context context 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
-
context context 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
-
context context for the pipeline. input is_output sdev
- Returns
◆ rocalSnowFixed()
RocalImage ROCAL_API_CALL rocalSnowFixed | ( | RocalContext | context, |
RocalImage | input, | ||
float | shift, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context for the pipeline. input is_output sdev
- Returns
◆ rocalSnPNoiseFixed()
RocalImage ROCAL_API_CALL rocalSnPNoiseFixed | ( | RocalContext | context, |
RocalImage | input, | ||
float | sdev, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context for the pipeline. input is_output sdev
- Returns
◆ rocalVignetteFixed()
RocalImage ROCAL_API_CALL rocalVignetteFixed | ( | RocalContext | context, |
RocalImage | input, | ||
float | sdev, | ||
bool | is_output | ||
) |
- Parameters
-
context context 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
-
context context 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
-
context context for the pipeline. input x0 x1 y0 y1 o0 o1 is_output dest_height dest_width
- Returns