/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.1/rocAL/include/api/rocal_api_augmentation.h Source File#
rocal_api_augmentation.h
Go to the documentation of this file.
49 extern "C" RocalImage ROCAL_API_CALL rocalSequenceRearrange(RocalContext context, RocalImage input,
90 extern "C" RocalImage ROCAL_API_CALL rocalResizeMirrorNormalize(RocalContext p_context, RocalImage p_input,
107 extern "C" RocalImage ROCAL_API_CALL rocalCropResize(RocalContext context, RocalImage input, unsigned dest_width,
126 extern "C" RocalImage ROCAL_API_CALL rocalCropResizeFixed(RocalContext context, RocalImage input, unsigned dest_width,
143 extern "C" RocalImage ROCAL_API_CALL rocalRotate(RocalContext context, RocalImage input, bool is_output,
158 extern "C" RocalImage ROCAL_API_CALL rocalRotateFixed(RocalContext context, RocalImage input, float angle,
170 extern "C" RocalImage ROCAL_API_CALL rocalBrightness(RocalContext context, RocalImage input, bool is_output,
182 extern "C" RocalImage ROCAL_API_CALL rocalBrightnessFixed(RocalContext context, RocalImage input,
206 extern "C" RocalImage ROCAL_API_CALL rocalGammaFixed(RocalContext context, RocalImage input, float alpha, bool is_output);
217 extern "C" RocalImage ROCAL_API_CALL rocalContrast(RocalContext context, RocalImage input, bool is_output,
241 extern "C" RocalImage ROCAL_API_CALL rocalFlip(RocalContext context, RocalImage input, bool is_output,
252 extern "C" RocalImage ROCAL_API_CALL rocalFlipFixed(RocalContext context, RocalImage input, int flip_axis, bool is_output);
262 extern "C" RocalImage ROCAL_API_CALL rocalBlur(RocalContext context, RocalImage input, bool is_output,
273 extern "C" RocalImage ROCAL_API_CALL rocalBlurFixed(RocalContext context, RocalImage input, int sdev, bool is_output);
284 extern "C" RocalImage ROCAL_API_CALL rocalBlend(RocalContext context, RocalImage input1, RocalImage input2, bool is_output,
296 extern "C" RocalImage ROCAL_API_CALL rocalBlendFixed(RocalContext context, RocalImage input1, RocalImage input2,
314 extern "C" RocalImage ROCAL_API_CALL rocalWarpAffine(RocalContext context, RocalImage input, bool is_output,
335 extern "C" RocalImage ROCAL_API_CALL rocalWarpAffineFixed(RocalContext context, RocalImage input, float x0, float x1,
345 extern "C" RocalImage ROCAL_API_CALL rocalFishEye(RocalContext context, RocalImage input, bool is_output);
355 extern "C" RocalImage ROCAL_API_CALL rocalVignette(RocalContext context, RocalImage input, bool is_output,
365 extern "C" RocalImage ROCAL_API_CALL rocalVignetteFixed(RocalContext context, RocalImage input, float sdev, bool is_output);
376 extern "C" RocalImage ROCAL_API_CALL rocalJitter(RocalContext context, RocalImage input, bool is_output,
399 extern "C" RocalImage ROCAL_API_CALL rocalSnPNoise(RocalContext context, RocalImage input, bool is_output,
410 extern "C" RocalImage ROCAL_API_CALL rocalSnPNoiseFixed(RocalContext context, RocalImage input, float sdev, bool is_output);
420 extern "C" RocalImage ROCAL_API_CALL rocalSnow(RocalContext context, RocalImage input, bool is_output,
430 extern "C" RocalImage ROCAL_API_CALL rocalSnowFixed(RocalContext context, RocalImage input, float shift, bool is_output);
443 extern "C" RocalImage ROCAL_API_CALL rocalRain(RocalContext context, RocalImage input, bool is_output,
473 extern "C" RocalImage ROCAL_API_CALL rocalColorTemp(RocalContext context, RocalImage input, bool is_output,
483 extern "C" RocalImage ROCAL_API_CALL rocalColorTempFixed(RocalContext context, RocalImage input, int adjustment, bool is_output);
493 extern "C" RocalImage ROCAL_API_CALL rocalFog(RocalContext context, RocalImage input, bool is_output,
503 extern "C" RocalImage ROCAL_API_CALL rocalFogFixed(RocalContext context, RocalImage input, float fog_value, bool is_output);
514 extern "C" RocalImage ROCAL_API_CALL rocalLensCorrection(RocalContext context, RocalImage input, bool is_output,
526 extern "C" RocalImage ROCAL_API_CALL rocalLensCorrectionFixed(RocalContext context, RocalImage input,
536 extern "C" RocalImage ROCAL_API_CALL rocalPixelate(RocalContext context, RocalImage input, bool is_output);
546 extern "C" RocalImage ROCAL_API_CALL rocalExposure(RocalContext context, RocalImage input, bool is_output,
556 extern "C" RocalImage ROCAL_API_CALL rocalExposureFixed(RocalContext context, RocalImage input, float shift, bool is_output);
599 extern "C" RocalImage ROCAL_API_CALL rocalSaturationFixed(RocalContext context, RocalImage input, float sat,
611 extern "C" RocalImage ROCAL_API_CALL rocalCopy(RocalContext context, RocalImage input, bool is_output);
620 extern "C" RocalImage ROCAL_API_CALL rocalNop(RocalContext context, RocalImage input, bool is_output);
633 extern "C" RocalImage ROCAL_API_CALL rocalColorTwist(RocalContext context, RocalImage input, bool is_output,
650 extern "C" RocalImage ROCAL_API_CALL rocalColorTwistFixed(RocalContext context, RocalImage input,
660 extern "C" RocalImage ROCAL_API_CALL rocalCropMirrorNormalize(RocalContext context, RocalImage input,
676 extern "C" RocalImage ROCAL_API_CALL rocalCrop(RocalContext context, RocalImage input, bool is_output,
701 extern "C" RocalImage ROCAL_API_CALL rocalCropCenterFixed(RocalContext context, RocalImage input,
710 extern "C" RocalImage ROCAL_API_CALL rocalResizeCropMirrorFixed(RocalContext context, RocalImage input,
720 extern "C" RocalImage ROCAL_API_CALL rocalResizeCropMirror(RocalContext context, RocalImage input,
RocalImage ROCAL_API_CALL rocalBrightnessFixed(RocalContext context, RocalImage input, float alpha, float beta, bool is_output)
Accepts U8 and RGB24 inputs.
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 ...
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.
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 rocalJitterFixed(RocalContext context, RocalImage input, int kernel_size, bool is_output)
RocalImage ROCAL_API_CALL rocalGamma(RocalContext context, RocalImage input, bool is_output, RocalFloatParam alpha=NULL)
Accepts U8 and RGB24 inputs.
RocalImage ROCAL_API_CALL rocalSnowFixed(RocalContext context, RocalImage input, float shift, bool is_output)
RocalImage ROCAL_API_CALL rocalSaturation(RocalContext context, RocalImage input, bool is_output, RocalFloatParam sat=NULL)
Accepts U8 and RGB24 inputs.
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.
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
RocalImage ROCAL_API_CALL rocalContrast(RocalContext context, RocalImage input, bool is_output, RocalIntParam min=NULL, RocalIntParam max=NULL)
Accepts U8 and RGB24 inputs.
RocalImage ROCAL_API_CALL rocalContrastFixed(RocalContext context, RocalImage input, unsigned min, unsigned max, bool is_output)
Accepts U8 and RGB24 inputs.
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 rocalExposure(RocalContext context, RocalImage input, bool is_output, RocalFloatParam shift=NULL)
RocalImage ROCAL_API_CALL rocalHueFixed(RocalContext context, RocalImage input, float hue, bool is_output)
RocalImage ROCAL_API_CALL rocalCopy(RocalContext context, RocalImage input, bool is_output)
Accepts U8 and RGB24 inputs.
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
RocalImage ROCAL_API_CALL rocalSnPNoiseFixed(RocalContext context, RocalImage input, float sdev, bool is_output)
RocalImage ROCAL_API_CALL rocalNop(RocalContext context, RocalImage input, bool is_output)
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
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
RocalImage ROCAL_API_CALL rocalFishEye(RocalContext context, RocalImage input, bool is_output)
RocalImage ROCAL_API_CALL rocalBlurFixed(RocalContext context, RocalImage input, int sdev, bool is_output)
RocalImage ROCAL_API_CALL rocalFog(RocalContext context, RocalImage input, bool is_output, RocalFloatParam fog_value=NULL)
RocalImage ROCAL_API_CALL rocalBrightness(RocalContext context, RocalImage input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL)
Accepts U8 and RGB24 inputs.
RocalImage ROCAL_API_CALL rocalGammaFixed(RocalContext context, RocalImage input, float alpha, bool is_output)
Accepts U8 and RGB24 inputs.
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)
RocalImage ROCAL_API_CALL rocalSaturationFixed(RocalContext context, RocalImage input, float sat, bool is_output)
rocalSaturationFixed
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 ...
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
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.
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.
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.
RocalImage ROCAL_API_CALL rocalHue(RocalContext context, RocalImage input, bool is_output, RocalFloatParam hue=NULL)
RocalImage ROCAL_API_CALL rocalColorTemp(RocalContext context, RocalImage input, bool is_output, RocalIntParam adjustment=NULL)
RocalImage ROCAL_API_CALL rocalPixelate(RocalContext context, RocalImage input, bool is_output)
RocalImage ROCAL_API_CALL rocalExposureFixed(RocalContext context, RocalImage input, float shift, bool is_output)
RocalImage ROCAL_API_CALL rocalJitter(RocalContext context, RocalImage input, bool is_output, RocalIntParam kernel_size=NULL)
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 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 val...
RocalImage ROCAL_API_CALL rocalBlur(RocalContext context, RocalImage input, bool is_output, RocalIntParam sdev=NULL)
Accepts U8 and RGB24 inputs.
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.
RocalImage ROCAL_API_CALL rocalVignette(RocalContext context, RocalImage input, bool is_output, RocalFloatParam sdev=NULL)
RocalImage ROCAL_API_CALL rocalSnPNoise(RocalContext context, RocalImage input, bool is_output, RocalFloatParam sdev=NULL)
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.
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)
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 rocalVignetteFixed(RocalContext context, RocalImage input, float sdev, bool is_output)
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.
RocalImage ROCAL_API_CALL rocalSnow(RocalContext context, RocalImage input, bool is_output, RocalFloatParam shift=NULL)
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 rocalColorTempFixed(RocalContext context, RocalImage input, int adjustment, bool is_output)
RocalImage ROCAL_API_CALL rocalCropCenterFixed(RocalContext context, RocalImage input, unsigned crop_width, unsigned crop_height, unsigned crop_depth, bool output)
rocalCropCenterFixed
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:295
RocalResizeInterpolationType
rocAL Resize Interpolation Type enum
Definition: rocal_api_types.h:314
@ ROCAL_SCALING_MODE_STRETCH
scales wrt specified size, if only resize width/height is provided the other dimension is not scaled
Definition: rocal_api_types.h:301
@ ROCAL_LINEAR_INTERPOLATION
AMD ROCAL_LINEAR_INTERPOLATION.
Definition: rocal_api_types.h:320
The AMD rocAL Library - Types.