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

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

rocAL: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/develop/rocAL/include/api/rocal_api_augmentation.h Source File
rocal_api_augmentation.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2019 - 2025 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #ifndef MIVISIONX_ROCAL_API_AUGMENTATION_H
24 #define MIVISIONX_ROCAL_API_AUGMENTATION_H
25 #include "rocal_api_types.h"
26 
45 extern "C" RocalTensor ROCAL_API_CALL rocalSequenceRearrange(RocalContext p_context, RocalTensor p_input,
46  std::vector<unsigned int> &new_order,
47  bool is_output);
48 
67 extern "C" RocalTensor ROCAL_API_CALL rocalResize(RocalContext context, RocalTensor input,
68  unsigned dest_width, unsigned dest_height,
69  bool is_output,
71  std::vector<unsigned> max_size = {},
72  unsigned resize_shorter = 0,
73  unsigned resize_longer = 0,
75  RocalTensorLayout output_layout = ROCAL_NONE,
76  RocalTensorOutputType output_datatype = ROCAL_UINT8);
77 
98 extern "C" RocalTensor ROCAL_API_CALL rocalResizeMirrorNormalize(RocalContext p_context, RocalTensor p_input, unsigned dest_width,
99  unsigned dest_height, std::vector<float> &mean, std::vector<float> &std_dev,
100  bool is_output,
102  std::vector<unsigned> max_size = {}, unsigned resize_shorter = 0,
103  unsigned resize_longer = 0,
105  RocalIntParam mirror = NULL,
106  RocalTensorLayout output_layout = ROCAL_NONE,
107  RocalTensorOutputType output_datatype = ROCAL_UINT8);
108 
125 extern "C" RocalTensor ROCAL_API_CALL rocalCropResize(RocalContext context, RocalTensor input,
126  unsigned dest_width, unsigned dest_height,
127  bool is_output,
128  RocalFloatParam area = NULL,
129  RocalFloatParam aspect_ratio = NULL,
130  RocalFloatParam x_center_drift = NULL,
131  RocalFloatParam y_center_drift = NULL,
132  RocalTensorLayout output_layout = ROCAL_NONE,
133  RocalTensorOutputType output_datatype = ROCAL_UINT8);
134 
150 extern "C" RocalTensor ROCAL_API_CALL rocalRandomResizedCrop(RocalContext context, RocalTensor input,
151  unsigned dest_width, unsigned dest_height,
152  bool is_output,
153  std::vector<float>& area_factor,
154  std::vector<float>& aspect_ratio,
156  RocalTensorLayout output_layout = ROCAL_NONE,
157  RocalTensorOutputType output_datatype = ROCAL_UINT8);
158 
175 extern "C" RocalTensor ROCAL_API_CALL rocalCropResizeFixed(RocalContext context, RocalTensor input,
176  unsigned dest_width, unsigned dest_height,
177  bool is_output,
178  float area, float aspect_ratio,
179  float x_center_drift, float y_center_drift,
180  RocalTensorLayout output_layout = ROCAL_NONE,
181  RocalTensorOutputType output_datatype = ROCAL_UINT8);
182 
199 extern "C" RocalTensor ROCAL_API_CALL rocalROIResize(RocalContext context, RocalTensor input,
200  unsigned dest_width, unsigned dest_height,
201  bool is_output,
202  unsigned roi_h,
203  unsigned roi_w,
204  float roi_pos_x = 0.0f,
205  float roi_pos_y = 0.0f,
207  RocalTensorLayout output_layout = ROCAL_NONE,
208  RocalTensorOutputType output_datatype = ROCAL_UINT8);
209 
224 extern "C" RocalTensor ROCAL_API_CALL rocalRotate(RocalContext context, RocalTensor input, bool is_output,
225  RocalFloatParam angle = NULL, unsigned dest_width = 0,
226  unsigned dest_height = 0,
228  RocalTensorLayout output_layout = ROCAL_NONE,
229  RocalTensorOutputType output_datatype = ROCAL_UINT8);
230 
244 extern "C" RocalTensor ROCAL_API_CALL rocalRotateFixed(RocalContext context, RocalTensor input, float angle,
245  bool is_output, unsigned dest_width = 0, unsigned dest_height = 0,
247  RocalTensorLayout output_layout = ROCAL_NONE,
248  RocalTensorOutputType output_datatype = ROCAL_UINT8);
249 
261 extern "C" RocalTensor ROCAL_API_CALL rocalBrightness(RocalContext context, RocalTensor input, bool is_output,
262  RocalFloatParam alpha = NULL, RocalFloatParam beta = NULL,
263  RocalTensorLayout output_layout = ROCAL_NONE,
264  RocalTensorOutputType output_datatype = ROCAL_UINT8);
265 
277 extern "C" RocalTensor ROCAL_API_CALL rocalBrightnessFixed(RocalContext context, RocalTensor input,
278  float alpha, float beta,
279  bool is_output,
280  RocalTensorLayout output_layout = ROCAL_NONE,
281  RocalTensorOutputType output_datatype = ROCAL_UINT8);
282 
293 extern "C" RocalTensor ROCAL_API_CALL rocalGamma(RocalContext context, RocalTensor input,
294  bool is_output,
295  RocalFloatParam gamma = NULL,
296  RocalTensorLayout output_layout = ROCAL_NONE,
297  RocalTensorOutputType output_datatype = ROCAL_UINT8);
298 
309 extern "C" RocalTensor ROCAL_API_CALL rocalGammaFixed(RocalContext context, RocalTensor input,
310  float gamma,
311  bool is_output,
312  RocalTensorLayout output_layout = ROCAL_NONE,
313  RocalTensorOutputType output_datatype = ROCAL_UINT8);
314 
326 extern "C" RocalTensor ROCAL_API_CALL rocalContrast(RocalContext context, RocalTensor input,
327  bool is_output,
328  RocalFloatParam contrast_factor = NULL, RocalFloatParam contrast_center = NULL,
329  RocalTensorLayout output_layout = ROCAL_NONE,
330  RocalTensorOutputType output_datatype = ROCAL_UINT8);
331 
343 extern "C" RocalTensor ROCAL_API_CALL rocalContrastFixed(RocalContext context, RocalTensor input,
344  float contrast_factor, float contrast_center,
345  bool is_output,
346  RocalTensorLayout output_layout = ROCAL_NONE,
347  RocalTensorOutputType output_datatype = ROCAL_UINT8);
348 
360 extern "C" RocalTensor ROCAL_API_CALL rocalFlip(RocalContext context, RocalTensor input, bool is_output,
361  RocalIntParam horizonal_flag = NULL, RocalIntParam vertical_flag = NULL,
362  RocalTensorLayout output_layout = ROCAL_NONE,
363  RocalTensorOutputType output_datatype = ROCAL_UINT8);
364 
376 extern "C" RocalTensor ROCAL_API_CALL rocalFlipFixed(RocalContext context, RocalTensor input,
377  int horizonal_flag, int vertical_flag, bool is_output,
378  RocalTensorLayout output_layout = ROCAL_NONE,
379  RocalTensorOutputType output_datatype = ROCAL_UINT8);
380 
390 extern "C" RocalTensor ROCAL_API_CALL rocalBlur(RocalContext context, RocalTensor input,
391  bool is_output,
392  RocalTensorLayout output_layout = ROCAL_NONE,
393  RocalTensorOutputType output_datatype = ROCAL_UINT8);
394 
406 extern "C" RocalTensor ROCAL_API_CALL rocalBlend(RocalContext context, RocalTensor input1, RocalTensor input2,
407  bool is_output,
408  RocalFloatParam ratio = NULL,
409  RocalTensorLayout output_layout = ROCAL_NONE,
410  RocalTensorOutputType output_datatype = ROCAL_UINT8);
411 
423 extern "C" RocalTensor ROCAL_API_CALL rocalBlendFixed(RocalContext context, RocalTensor input1, RocalTensor input2,
424  float ratio, bool is_output,
425  RocalTensorLayout output_layout = ROCAL_NONE,
426  RocalTensorOutputType output_datatype = ROCAL_UINT8);
427 
446 extern "C" RocalTensor ROCAL_API_CALL rocalWarpAffine(RocalContext context, RocalTensor input, bool is_output,
447  unsigned dest_height = 0, unsigned dest_width = 0,
448  RocalFloatParam x0 = NULL, RocalFloatParam x1 = NULL,
449  RocalFloatParam y0 = NULL, RocalFloatParam y1 = NULL,
450  RocalFloatParam o0 = NULL, RocalFloatParam o1 = NULL,
452  RocalTensorLayout output_layout = ROCAL_NONE,
453  RocalTensorOutputType output_datatype = ROCAL_UINT8);
454 
473 extern "C" RocalTensor ROCAL_API_CALL rocalWarpAffineFixed(RocalContext context, RocalTensor input, float x0, float x1,
474  float y0, float y1, float o0, float o1, bool is_output,
475  unsigned int dest_height = 0, unsigned int dest_width = 0,
477  RocalTensorLayout output_layout = ROCAL_NONE,
478  RocalTensorOutputType output_datatype = ROCAL_UINT8);
479 
489 extern "C" RocalTensor ROCAL_API_CALL rocalFishEye(RocalContext context, RocalTensor input, bool is_output,
490  RocalTensorLayout output_layout = ROCAL_NONE,
491  RocalTensorOutputType output_datatype = ROCAL_UINT8);
492 
504 extern "C" RocalTensor ROCAL_API_CALL rocalVignette(RocalContext context, RocalTensor input,
505  bool is_output, RocalFloatParam sdev = NULL,
506  RocalTensorLayout output_layout = ROCAL_NONE,
507  RocalTensorOutputType output_datatype = ROCAL_UINT8);
508 
520 extern "C" RocalTensor ROCAL_API_CALL rocalVignetteFixed(RocalContext context, RocalTensor input,
521  float sdev, bool is_output,
522  RocalTensorLayout output_layout = ROCAL_NONE,
523  RocalTensorOutputType output_datatype = ROCAL_UINT8);
524 
536 extern "C" RocalTensor ROCAL_API_CALL rocalJitter(RocalContext context, RocalTensor input,
537  bool is_output,
538  RocalIntParam kernel_size = NULL,
539  int seed = 0,
540  RocalTensorLayout output_layout = ROCAL_NONE,
541  RocalTensorOutputType output_datatype = ROCAL_UINT8);
542 
554 extern "C" RocalTensor ROCAL_API_CALL rocalJitterFixed(RocalContext context, RocalTensor input,
555  int kernel_size, bool is_output, int seed = 0,
556  RocalTensorLayout output_layout = ROCAL_NONE,
557  RocalTensorOutputType output_datatype = ROCAL_UINT8);
558 
573 extern "C" RocalTensor ROCAL_API_CALL rocalSnPNoise(RocalContext context, RocalTensor input,
574  bool is_output,
575  RocalFloatParam noise_prob = NULL, RocalFloatParam salt_prob = NULL,
576  RocalFloatParam salt_val = NULL, RocalFloatParam pepper_val = NULL,
577  int seed = 0,
578  RocalTensorLayout output_layout = ROCAL_NONE,
579  RocalTensorOutputType output_datatype = ROCAL_UINT8);
580 
595 extern "C" RocalTensor ROCAL_API_CALL rocalSnPNoiseFixed(RocalContext context, RocalTensor input,
596  float noise_prob, float salt_prob,
597  float salt_val, float pepper_val,
598  bool is_output, int seed = 0,
599  RocalTensorLayout output_layout = ROCAL_NONE,
600  RocalTensorOutputType output_datatype = ROCAL_UINT8);
601 
612 extern "C" RocalTensor ROCAL_API_CALL rocalSnow(RocalContext context, RocalTensor input,
613  bool is_output,
614  RocalFloatParam snow = NULL,
615  RocalTensorLayout output_layout = ROCAL_NONE,
616  RocalTensorOutputType output_datatype = ROCAL_UINT8);
617 
628 extern "C" RocalTensor ROCAL_API_CALL rocalSnowFixed(RocalContext context, RocalTensor input,
629  float snow, bool is_output,
630  RocalTensorLayout output_layout = ROCAL_NONE,
631  RocalTensorOutputType output_datatype = ROCAL_UINT8);
632 
647 extern "C" RocalTensor ROCAL_API_CALL rocalRain(RocalContext context, RocalTensor input,
648  bool is_output,
649  float rain_percentage = 0.0,
650  int rain_width = 0,
651  int rain_height = 0,
652  float rain_slant_angle = 0.0,
653  RocalFloatParam rain_transparency = NULL,
654  RocalTensorLayout output_layout = ROCAL_NONE,
655  RocalTensorOutputType output_datatype = ROCAL_UINT8);
656 
671 extern "C" RocalTensor ROCAL_API_CALL rocalRainFixed(RocalContext context, RocalTensor input,
672  bool is_output,
673  float rain_percentage = 0.0,
674  int rain_width = 0,
675  int rain_height = 0,
676  float rain_slant_angle = 0.0,
677  float rain_transparency = 0.0,
678  RocalTensorLayout output_layout = ROCAL_NONE,
679  RocalTensorOutputType output_datatype = ROCAL_UINT8);
680 
691 extern "C" RocalTensor ROCAL_API_CALL rocalColorTemp(RocalContext context, RocalTensor input,
692  bool is_output,
693  RocalIntParam adjustment = NULL,
694  RocalTensorLayout output_layout = ROCAL_NONE,
695  RocalTensorOutputType output_datatype = ROCAL_UINT8);
696 
707 extern "C" RocalTensor ROCAL_API_CALL rocalColorTempFixed(RocalContext context, RocalTensor input,
708  int adjustment, bool is_output,
709  RocalTensorLayout output_layout = ROCAL_NONE,
710  RocalTensorOutputType output_datatype = ROCAL_UINT8);
711 
723 extern "C" RocalTensor ROCAL_API_CALL rocalFog(RocalContext context, RocalTensor input,
724  bool is_output,
725  RocalFloatParam intensity_value = NULL,
726  RocalFloatParam gray_value = NULL,
727  RocalTensorLayout output_layout = ROCAL_NONE,
728  RocalTensorOutputType output_datatype = ROCAL_UINT8);
729 
741 extern "C" RocalTensor ROCAL_API_CALL rocalFogFixed(RocalContext context, RocalTensor input,
742  float fog_value, float gray_value, bool is_output,
743  RocalTensorLayout output_layout = ROCAL_NONE,
744  RocalTensorOutputType output_datatype = ROCAL_UINT8);
745 
757 extern "C" RocalTensor ROCAL_API_CALL rocalLensCorrection(RocalContext context, RocalTensor input,
758  std::vector<CameraMatrix> camera_matrix, std::vector<DistortionCoeffs> distortion_coeffs,
759  bool is_output, RocalTensorLayout output_layout = ROCAL_NONE,
760  RocalTensorOutputType output_datatype = ROCAL_UINT8);
761 
772 extern "C" RocalTensor ROCAL_API_CALL rocalPixelate(RocalContext context, RocalTensor input,
773  bool is_output, float pixelate_percentage = 50.0,
774  RocalTensorLayout output_layout = ROCAL_NONE,
775  RocalTensorOutputType output_datatype = ROCAL_UINT8);
776 
787 extern "C" RocalTensor ROCAL_API_CALL rocalExposure(RocalContext context, RocalTensor input,
788  bool is_output,
789  RocalFloatParam exposure_factor = NULL,
790  RocalTensorLayout output_layout = ROCAL_NONE,
791  RocalTensorOutputType output_datatype = ROCAL_UINT8);
792 
803 extern "C" RocalTensor ROCAL_API_CALL rocalExposureFixed(RocalContext context, RocalTensor input,
804  float exposure_factor, bool is_output,
805  RocalTensorLayout output_layout = ROCAL_NONE,
806  RocalTensorOutputType output_datatype = ROCAL_UINT8);
807 
818 extern "C" RocalTensor ROCAL_API_CALL rocalHue(RocalContext context, RocalTensor input,
819  bool is_output,
820  RocalFloatParam hue = NULL,
821  RocalTensorLayout output_layout = ROCAL_NONE,
822  RocalTensorOutputType output_datatype = ROCAL_UINT8);
823 
834 extern "C" RocalTensor ROCAL_API_CALL rocalHueFixed(RocalContext context, RocalTensor input,
835  float hue,
836  bool is_output,
837  RocalTensorLayout output_layout = ROCAL_NONE,
838  RocalTensorOutputType output_datatype = ROCAL_UINT8);
839 
850 extern "C" RocalTensor ROCAL_API_CALL rocalSaturation(RocalContext context, RocalTensor input,
851  bool is_output,
852  RocalFloatParam saturation = NULL,
853  RocalTensorLayout output_layout = ROCAL_NONE,
854  RocalTensorOutputType output_datatype = ROCAL_UINT8);
855 
866 extern "C" RocalTensor ROCAL_API_CALL rocalSaturationFixed(RocalContext context, RocalTensor input,
867  float saturation, bool is_output,
868  RocalTensorLayout output_layout = ROCAL_NONE,
869  RocalTensorOutputType output_datatype = ROCAL_UINT8);
870 
878 extern "C" RocalTensor ROCAL_API_CALL rocalCopy(RocalContext context, RocalTensor input, bool is_output);
879 
887 extern "C" RocalTensor ROCAL_API_CALL rocalNop(RocalContext context, RocalTensor input, bool is_output);
888 
902 extern "C" RocalTensor ROCAL_API_CALL rocalColorTwist(RocalContext context, RocalTensor input,
903  bool is_output,
904  RocalFloatParam alpha = NULL,
905  RocalFloatParam beta = NULL,
906  RocalFloatParam hue = NULL,
907  RocalFloatParam sat = NULL,
908  RocalTensorLayout output_layout = ROCAL_NONE,
909  RocalTensorOutputType output_datatype = ROCAL_UINT8);
910 
924 extern "C" RocalTensor ROCAL_API_CALL rocalColorTwistFixed(RocalContext context, RocalTensor input,
925  float alpha,
926  float beta,
927  float hue,
928  float sat,
929  bool is_output,
930  RocalTensorLayout output_layout = ROCAL_NONE,
931  RocalTensorOutputType output_datatype = ROCAL_UINT8);
932 
949 extern "C" RocalTensor ROCAL_API_CALL rocalCropMirrorNormalize(RocalContext context, RocalTensor input,
950  unsigned crop_height,
951  unsigned crop_width,
952  float start_x,
953  float start_y,
954  std::vector<float> &mean,
955  std::vector<float> &std_dev,
956  bool is_output,
957  RocalIntParam mirror = NULL,
958  RocalTensorLayout output_layout = ROCAL_NONE,
959  RocalTensorOutputType output_datatype = ROCAL_UINT8);
960 
976 extern "C" RocalTensor ROCAL_API_CALL rocalCrop(RocalContext context, RocalTensor input, bool is_output,
977  RocalFloatParam crop_width = NULL,
978  RocalFloatParam crop_height = NULL,
979  RocalFloatParam crop_depth = NULL,
980  RocalFloatParam crop_pox_x = NULL,
981  RocalFloatParam crop_pos_y = NULL,
982  RocalFloatParam crop_pos_z = NULL,
983  RocalTensorLayout output_layout = ROCAL_NONE,
984  RocalTensorOutputType output_datatype = ROCAL_UINT8);
985 
1001 extern "C" RocalTensor ROCAL_API_CALL rocalCropFixed(RocalContext context, RocalTensor input,
1002  unsigned crop_width,
1003  unsigned crop_height,
1004  unsigned crop_depth,
1005  bool is_output,
1006  float crop_pox_x,
1007  float crop_pos_y,
1008  float crop_pos_z,
1009  RocalTensorLayout output_layout = ROCAL_NONE,
1010  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1011 
1024 extern "C" RocalTensor ROCAL_API_CALL rocalCropCenterFixed(RocalContext context, RocalTensor input,
1025  unsigned crop_width,
1026  unsigned crop_height,
1027  unsigned crop_depth,
1028  bool is_output,
1029  RocalTensorLayout output_layout = ROCAL_NONE,
1030  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1031 
1046 extern "C" RocalTensor ROCAL_API_CALL rocalResizeCropMirrorFixed(RocalContext context, RocalTensor input,
1047  unsigned dest_width, unsigned dest_height,
1048  bool is_output,
1049  unsigned crop_h,
1050  unsigned crop_w,
1051  RocalIntParam mirror,
1052  RocalTensorLayout output_layout = ROCAL_NONE,
1053  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1054 
1069 extern "C" RocalTensor ROCAL_API_CALL rocalResizeCropMirror(RocalContext context, RocalTensor input,
1070  unsigned dest_width, unsigned dest_height,
1071  bool is_output, RocalFloatParam crop_height = NULL,
1072  RocalFloatParam crop_width = NULL, RocalIntParam mirror = NULL,
1073  RocalTensorLayout output_layout = ROCAL_NONE,
1074  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1075 
1090 extern "C" RocalTensor ROCAL_API_CALL rocalRandomCrop(RocalContext context, RocalTensor input,
1091  bool is_output,
1092  RocalFloatParam crop_area_factor = NULL,
1093  RocalFloatParam crop_aspect_ratio = NULL,
1094  RocalFloatParam crop_pos_x = NULL,
1095  RocalFloatParam crop_pos_y = NULL,
1096  int num_of_attempts = 20,
1097  RocalTensorLayout output_layout = ROCAL_NONE,
1098  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1099 
1115 extern "C" RocalTensor ROCAL_API_CALL rocalSSDRandomCrop(RocalContext context, RocalTensor input,
1116  bool is_output,
1117  RocalFloatParam threshold = NULL,
1118  RocalFloatParam crop_area_factor = NULL,
1119  RocalFloatParam crop_aspect_ratio = NULL,
1120  RocalFloatParam crop_pos_x = NULL,
1121  RocalFloatParam crop_pos_y = NULL,
1122  int num_of_attempts = 20,
1123  RocalTensorLayout output_layout = ROCAL_NONE,
1124  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1125 
1136 extern "C" RocalTensor ROCAL_API_CALL rocalPreEmphasisFilter(RocalContext context,
1137  RocalTensor input,
1138  bool is_output,
1139  RocalFloatParam preemph_coeff = NULL,
1141  RocalTensorOutputType output_datatype = ROCAL_FP32);
1142 
1159 extern "C" RocalTensor ROCAL_API_CALL rocalSpectrogram(RocalContext context,
1160  RocalTensor input,
1161  bool is_output,
1162  std::vector<float> &window_fn,
1163  bool center_windows,
1164  bool reflect_padding,
1165  int power,
1166  int nfft,
1167  int window_length = 512,
1168  int window_step = 256,
1169  RocalTensorLayout output_layout = ROCAL_NFT,
1170  RocalTensorOutputType output_datatype = ROCAL_FP32);
1171 
1183 extern "C" RocalTensor ROCAL_API_CALL rocalToDecibels(RocalContext p_context,
1184  RocalTensor p_input,
1185  bool is_output,
1186  float cutoff_db,
1187  float multiplier,
1188  float reference_magnitude,
1189  RocalTensorOutputType rocal_tensor_output_type);
1190 
1202 extern "C" RocalTensor ROCAL_API_CALL rocalResample(RocalContext p_context,
1203  RocalTensor p_input,
1204  RocalTensor p_output_resample_rate,
1205  bool is_output,
1206  float sample_hint,
1207  float quality = 50.0,
1208  RocalTensorOutputType output_datatype = ROCAL_FP32);
1209 
1218 extern "C" RocalTensor ROCAL_API_CALL rocalUniformDistribution(RocalContext p_context,
1219  RocalTensor p_input,
1220  bool is_output,
1221  std::vector<float> &range);
1222 
1231 extern "C" RocalTensor ROCAL_API_CALL rocalNormalDistribution(RocalContext p_context,
1232  RocalTensor p_input,
1233  bool is_output,
1234  float mean = 0.0,
1235  float stddev = 0.0);
1236 
1245 extern "C" RocalTensor ROCAL_API_CALL rocalTensorMulScalar(RocalContext p_context,
1246  RocalTensor p_input,
1247  bool is_output,
1248  float scalar = 0.0,
1249  RocalTensorOutputType output_datatype = ROCAL_FP32);
1250 
1259 extern "C" RocalTensor ROCAL_API_CALL rocalTensorAddTensor(RocalContext p_context,
1260  RocalTensor p_input1,
1261  RocalTensor p_input2,
1262  bool is_output,
1263  RocalTensorOutputType output_datatype = ROCAL_FP32);
1264 
1277  RocalTensor input,
1278  bool is_output,
1279  float cutoff_db,
1280  float reference_power,
1281  int reset_interval,
1282  int window_length);
1283 
1296 extern "C" RocalTensor ROCAL_API_CALL rocalSlice(RocalContext context,
1297  RocalTensor input,
1298  bool is_output,
1299  RocalTensor anchor,
1300  RocalTensor shape,
1301  std::vector<float> fill_values,
1303  RocalTensorOutputType output_datatype = ROCAL_FP32);
1304 
1318 extern "C" RocalTensor ROCAL_API_CALL rocalNormalize(RocalContext context, RocalTensor input,
1319  std::vector<unsigned> &axes,
1320  std::vector<float> &mean,
1321  std::vector<float> &std_dev,
1322  bool is_output,
1323  float scale = 1.0, float shift = 0.0,
1324  RocalTensorOutputType output_datatype = ROCAL_FP32);
1325 
1341 extern "C" RocalTensor ROCAL_API_CALL rocalMelFilterBank(RocalContext p_context,
1342  RocalTensor p_input,
1343  bool is_output,
1344  float freq_high,
1345  float freq_low,
1346  RocalMelScaleFormula mel_formula,
1347  int nfilter,
1348  bool normalize,
1349  float sample_rate,
1350  RocalTensorOutputType output_datatype);
1351 
1362 extern "C" RocalTensor ROCAL_API_CALL rocalTranspose(RocalContext context, RocalTensor input, std::vector<unsigned> perm, bool is_output,
1363  RocalTensorLayout output_layout = ROCAL_NONE);
1364 
1371 extern "C" RocalTensor ROCAL_API_CALL rocalLog1p(RocalContext p_context,
1372  RocalTensor p_input,
1373  bool is_output);
1374 
1375 #endif // MIVISIONX_ROCAL_API_AUGMENTATION_H
RocalTensor ROCAL_API_CALL rocalContrastFixed(RocalContext context, RocalTensor input, float contrast_factor, float contrast_center, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts contrast of the image with fixed parameters.
RocalTensor ROCAL_API_CALL rocalSlice(RocalContext context, RocalTensor input, bool is_output, RocalTensor anchor, RocalTensor shape, std::vector< float > fill_values, RocalOutOfBoundsPolicy policy=RocalOutOfBoundsPolicy::ROCAL_ERROR, RocalTensorOutputType output_datatype=ROCAL_FP32)
Extracts the sub-tensor from a given input tensor.
RocalTensor ROCAL_API_CALL rocalSequenceRearrange(RocalContext p_context, RocalTensor p_input, std::vector< unsigned int > &new_order, bool is_output)
Rearranges the order of the frames in the sequences with respect to new_order. new_order can have val...
RocalTensor ROCAL_API_CALL rocalFishEye(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies fish eye effect on images.
RocalTensor ROCAL_API_CALL rocalRandomResizedCrop(RocalContext context, RocalTensor input, unsigned dest_width, unsigned dest_height, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, RocalResizeInterpolationType interpolation_type=RocalResizeInterpolationType::ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which performs random crop and resize on images.
RocalTensor ROCAL_API_CALL rocalBlend(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, RocalFloatParam ratio=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Blends two input images given the ratio: output = input1*ratio + input2*(1-ratio)
RocalTensor ROCAL_API_CALL rocalHue(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam hue=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the hue in images.
RocalTensor ROCAL_API_CALL rocalBlendFixed(RocalContext context, RocalTensor input1, RocalTensor input2, float ratio, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Blends two input images given the fixed ratio: output = input1*ratio + input2*(1-ratio)
RocalTensor ROCAL_API_CALL rocalSpectrogram(RocalContext context, RocalTensor input, bool is_output, std::vector< float > &window_fn, bool center_windows, bool reflect_padding, int power, int nfft, int window_length=512, int window_step=256, RocalTensorLayout output_layout=ROCAL_NFT, RocalTensorOutputType output_datatype=ROCAL_FP32)
Produces a spectrogram from a 1D audio signal.
RocalTensor ROCAL_API_CALL rocalCropResize(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which perrforms crop and resize on images.
RocalTensor ROCAL_API_CALL rocalCropMirrorNormalize(RocalContext context, RocalTensor input, unsigned crop_height, unsigned crop_width, float start_x, float start_y, std::vector< float > &mean, std::vector< float > &std_dev, bool is_output, RocalIntParam mirror=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which performs crop, normalize and flip on images.
RocalTensor ROCAL_API_CALL rocalJitter(RocalContext context, RocalTensor input, bool is_output, RocalIntParam kernel_size=NULL, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies jitter effect on images.
RocalTensor ROCAL_API_CALL rocalResize(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Resize images.
RocalTensor ROCAL_API_CALL rocalMelFilterBank(RocalContext p_context, RocalTensor p_input, bool is_output, float freq_high, float freq_low, RocalMelScaleFormula mel_formula, int nfilter, bool normalize, float sample_rate, RocalTensorOutputType output_datatype)
Applies mel-filter bank augmentation on the given input tensor.
RocalTensor ROCAL_API_CALL rocalPreEmphasisFilter(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam preemph_coeff=NULL, RocalAudioBorderType preemph_border_type=RocalAudioBorderType::ROCAL_CLAMP, RocalTensorOutputType output_datatype=ROCAL_FP32)
Applies preemphasis filter to the input data.
RocalTensor ROCAL_API_CALL rocalSaturationFixed(RocalContext context, RocalTensor input, float saturation, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the saturation in images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalUniformDistribution(RocalContext p_context, RocalTensor p_input, bool is_output, std::vector< float > &range)
Creates and returns rocALTensor generated from an uniform distribution.
RocalTensor ROCAL_API_CALL rocalExposureFixed(RocalContext context, RocalTensor input, float exposure_factor, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the exposure in images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalExposure(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam exposure_factor=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the exposure in images.
RocalTensor ROCAL_API_CALL rocalBlur(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies blur effect to images.
RocalTensor ROCAL_API_CALL rocalSnowFixed(RocalContext context, RocalTensor input, float snow, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies snow effect on images with fixed parameter.
RocalTensor ROCAL_API_CALL rocalLensCorrection(RocalContext context, RocalTensor input, std::vector< CameraMatrix > camera_matrix, std::vector< DistortionCoeffs > distortion_coeffs, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies lens correction effect on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalContrast(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam contrast_factor=NULL, RocalFloatParam contrast_center=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts contrast of the image.
RocalTensor ROCAL_API_CALL rocalVignetteFixed(RocalContext context, RocalTensor input, float sdev, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies vignette effect on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalFogFixed(RocalContext context, RocalTensor input, float fog_value, float gray_value, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies fog effect on images with fixed parameter.
RocalTensor ROCAL_API_CALL rocalSaturation(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam saturation=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the saturation in images.
RocalTensor ROCAL_API_CALL rocalWarpAffineFixed(RocalContext context, RocalTensor 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, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies affine transformation to images with fixed affine matrix.
RocalTensor ROCAL_API_CALL rocalPixelate(RocalContext context, RocalTensor input, bool is_output, float pixelate_percentage=50.0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies pixelate effect on images.
RocalNSROutput ROCAL_API_CALL rocalNonSilentRegionDetection(RocalContext context, RocalTensor input, bool is_output, float cutoff_db, float reference_power, int reset_interval, int window_length)
Performs silence detection in the input audio tensor.
RocalTensor ROCAL_API_CALL rocalCropFixed(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops images with fixed coordinates.
RocalTensor ROCAL_API_CALL rocalToDecibels(RocalContext p_context, RocalTensor p_input, bool is_output, float cutoff_db, float multiplier, float reference_magnitude, RocalTensorOutputType rocal_tensor_output_type)
A.
RocalTensor ROCAL_API_CALL rocalSnPNoise(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam noise_prob=NULL, RocalFloatParam salt_prob=NULL, RocalFloatParam salt_val=NULL, RocalFloatParam pepper_val=NULL, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies salt and pepper noise effect on images.
RocalTensor ROCAL_API_CALL rocalResample(RocalContext p_context, RocalTensor p_input, RocalTensor p_output_resample_rate, bool is_output, float sample_hint, float quality=50.0, RocalTensorOutputType output_datatype=ROCAL_FP32)
Applies resample augmentation to input tensors.
RocalTensor ROCAL_API_CALL rocalRotateFixed(RocalContext context, RocalTensor input, float angle, bool is_output, unsigned dest_width=0, unsigned dest_height=0, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Rotates images with fixed angle value.
RocalTensor ROCAL_API_CALL rocalGammaFixed(RocalContext context, RocalTensor input, float gamma, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gamma correction on image with fixed parameters.
RocalTensor ROCAL_API_CALL rocalROIResize(RocalContext context, RocalTensor input, unsigned dest_width, unsigned dest_height, bool is_output, unsigned roi_h, unsigned roi_w, float roi_pos_x=0.0f, float roi_pos_y=0.0f, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Resizes images based on the ROI region passed by the user.
RocalTensor ROCAL_API_CALL rocalVignette(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam sdev=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies vignette effect on images.
RocalTensor ROCAL_API_CALL rocalRandomCrop(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops images randomly.
RocalTensor ROCAL_API_CALL rocalColorTemp(RocalContext context, RocalTensor input, bool is_output, RocalIntParam adjustment=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the color temperature in images.
RocalTensor ROCAL_API_CALL rocalTranspose(RocalContext context, RocalTensor input, std::vector< unsigned > perm, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE)
Transposes the tensors by reordering the dimensions based on the perm parameter.
RocalTensor ROCAL_API_CALL rocalColorTwist(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL, RocalFloatParam hue=NULL, RocalFloatParam sat=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the brightness, hue and saturation of the images.
RocalTensor ROCAL_API_CALL rocalCopy(RocalContext context, RocalTensor input, bool is_output)
Copies input tensor to output tensor.
RocalTensor ROCAL_API_CALL rocalRotate(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam angle=NULL, unsigned dest_width=0, unsigned dest_height=0, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Rotates images.
RocalTensor ROCAL_API_CALL rocalResizeMirrorNormalize(RocalContext p_context, RocalTensor p_input, unsigned dest_width, unsigned dest_height, std::vector< float > &mean, std::vector< float > &std_dev, 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, RocalIntParam mirror=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which performs resize, normalize and flip on images.
RocalTensor ROCAL_API_CALL rocalSnow(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam snow=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies snow effect on images.
RocalTensor ROCAL_API_CALL rocalSnPNoiseFixed(RocalContext context, RocalTensor input, float noise_prob, float salt_prob, float salt_val, float pepper_val, bool is_output, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies salt and pepper noise on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalRain(RocalContext context, RocalTensor input, bool is_output, float rain_percentage=0.0, int rain_width=0, int rain_height=0, float rain_slant_angle=0.0, RocalFloatParam rain_transparency=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies rain effect on images.
RocalTensor ROCAL_API_CALL rocalSSDRandomCrop(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops images randomly used for SSD training.
RocalTensor ROCAL_API_CALL rocalNop(RocalContext context, RocalTensor input, bool is_output)
Performs no operation.
RocalTensor ROCAL_API_CALL rocalWarpAffine(RocalContext context, RocalTensor 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, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies affine transformation to images.
RocalTensor ROCAL_API_CALL rocalHueFixed(RocalContext context, RocalTensor input, float hue, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the hue in images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalFlip(RocalContext context, RocalTensor input, bool is_output, RocalIntParam horizonal_flag=NULL, RocalIntParam vertical_flag=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Flip images horizontally and/or vertically based on inputs.
RocalTensor ROCAL_API_CALL rocalColorTwistFixed(RocalContext context, RocalTensor input, float alpha, float beta, float hue, float sat, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the brightness, hue and saturation of the images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalResizeCropMirror(RocalContext context, RocalTensor input, unsigned dest_width, unsigned dest_height, bool is_output, RocalFloatParam crop_height=NULL, RocalFloatParam crop_width=NULL, RocalIntParam mirror=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which performs resize, crop and flip on images.
RocalTensor ROCAL_API_CALL rocalCropResizeFixed(RocalContext context, RocalTensor input, unsigned dest_width, unsigned dest_height, bool is_output, float area, float aspect_ratio, float x_center_drift, float y_center_drift, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which perrforms crop and resize on images with fixed crop coordinates.
RocalTensor ROCAL_API_CALL rocalCrop(RocalContext context, RocalTensor 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, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops images.
RocalTensor ROCAL_API_CALL rocalFog(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam intensity_value=NULL, RocalFloatParam gray_value=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies fog effect on images.
RocalTensor ROCAL_API_CALL rocalColorTempFixed(RocalContext context, RocalTensor input, int adjustment, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts the color temperature in images with fixed value.
RocalTensor ROCAL_API_CALL rocalFlipFixed(RocalContext context, RocalTensor input, int horizonal_flag, int vertical_flag, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Flip images horizontally and/or vertically with fixed parameters.
RocalTensor ROCAL_API_CALL rocalGamma(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam gamma=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gamma correction on image.
RocalTensor ROCAL_API_CALL rocalNormalize(RocalContext context, RocalTensor input, std::vector< unsigned > &axes, std::vector< float > &mean, std::vector< float > &std_dev, bool is_output, float scale=1.0, float shift=0.0, RocalTensorOutputType output_datatype=ROCAL_FP32)
Performs mean-stddev normalization on images.
RocalTensor ROCAL_API_CALL rocalBrightness(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts brightness of the image.
RocalTensor ROCAL_API_CALL rocalJitterFixed(RocalContext context, RocalTensor input, int kernel_size, bool is_output, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies jitter effect on images with fixed kernel size.
RocalTensor ROCAL_API_CALL rocalCropCenterFixed(RocalContext context, RocalTensor input, unsigned crop_width, unsigned crop_height, unsigned crop_depth, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops images at the center with fixed coordinates.
RocalTensor ROCAL_API_CALL rocalRainFixed(RocalContext context, RocalTensor input, bool is_output, float rain_percentage=0.0, int rain_width=0, int rain_height=0, float rain_slant_angle=0.0, float rain_transparency=0.0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies rain effect on images with fixed parameter.
RocalTensor ROCAL_API_CALL rocalBrightnessFixed(RocalContext context, RocalTensor input, float alpha, float beta, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts brightness of the image with fixed parameters.
RocalTensor ROCAL_API_CALL rocalResizeCropMirrorFixed(RocalContext context, RocalTensor input, unsigned dest_width, unsigned dest_height, bool is_output, unsigned crop_h, unsigned crop_w, RocalIntParam mirror, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Fused function which performs resize, crop and flip on images with fixed crop.
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:326
RocalTensorLayout
rocAL Tensor Layout enum
Definition: rocal_api_types.h:208
RocalMelScaleFormula
rocAL MelScale formula enum
Definition: rocal_api_types.h:441
RocalTensorOutputType
rocAL Tensor Output Type enum
Definition: rocal_api_types.h:246
void * RocalIntParam
typedef void* rocAL Int Param
Definition: rocal_api_types.h:58
RocalOutOfBoundsPolicy
rocAL Out Of Bounds Policy Type enum
Definition: rocal_api_types.h:426
RocalAudioBorderType
rocAL Audio Border Type enum
Definition: rocal_api_types.h:411
void * RocalFloatParam
typedef void* Float Param
Definition: rocal_api_types.h:53
void * RocalContext
typedef void* rocAL Context
Definition: rocal_api_types.h:63
RocalResizeInterpolationType
rocAL Resize Interpolation Type enum
Definition: rocal_api_types.h:348
@ 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:332
@ ROCAL_NONE
AMD ROCAL_NONE.
Definition: rocal_api_types.h:240
@ ROCAL_NFT
AMD ROCAL_NFT Spectrogram Layout FT.
Definition: rocal_api_types.h:227
@ ROCAL_FP32
AMD ROCAL_FP32.
Definition: rocal_api_types.h:249
@ ROCAL_UINT8
AMD ROCAL_UINT8.
Definition: rocal_api_types.h:255
@ ROCAL_ERROR
Error.
Definition: rocal_api_types.h:435
@ ROCAL_CLAMP
AMD ROCAL_CLAMP.
Definition: rocal_api_types.h:417
@ ROCAL_LINEAR_INTERPOLATION
AMD ROCAL_LINEAR_INTERPOLATION.
Definition: rocal_api_types.h:354
RocalTensor ROCAL_API_CALL rocalTensorMulScalar(RocalContext p_context, RocalTensor p_input, bool is_output, float scalar=0.0, RocalTensorOutputType output_datatype=ROCAL_FP32)
Multiples a tensor and a scalar and returns the output.
RocalTensor ROCAL_API_CALL rocalTensorAddTensor(RocalContext p_context, RocalTensor p_input1, RocalTensor p_input2, bool is_output, RocalTensorOutputType output_datatype=ROCAL_FP32)
Adds two tensors and returns the output.
RocalTensor ROCAL_API_CALL rocalNormalDistribution(RocalContext p_context, RocalTensor p_input, bool is_output, float mean=0.0, float stddev=0.0)
Creates and returns rocALTensor generated from an normal distribution.
RocalTensor ROCAL_API_CALL rocalLog1p(RocalContext p_context, RocalTensor p_input, bool is_output)
Computes the natural logarithm of 1 + input element-wise and returns the output.
The AMD rocAL Library - Types.
#define ROCAL_API_CALL
Definition: rocal_api_types.h:35