/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.1/rocAL/include/api/rocal_api_augmentation.h File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.1/rocAL/include/api/rocal_api_augmentation.h File Reference#

rocAL: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.1/rocAL/include/api/rocal_api_augmentation.h File Reference
rocal_api_augmentation.h File Reference

The AMD rocAL Library - Augmentations. More...

#include "rocal_api_types.h"

Go to the source code of this file.

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 Library - Augmentations.