/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 
46  std::vector<unsigned int> &new_order,
47  bool is_output);
48 
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 
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 
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 
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 
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 
278  float alpha, float beta,
279  bool is_output,
280  RocalTensorLayout output_layout = ROCAL_NONE,
281  RocalTensorOutputType output_datatype = ROCAL_UINT8);
282 
294  bool is_output,
295  RocalFloatParam gamma = NULL,
296  RocalTensorLayout output_layout = ROCAL_NONE,
297  RocalTensorOutputType output_datatype = ROCAL_UINT8);
298 
310  float gamma,
311  bool is_output,
312  RocalTensorLayout output_layout = ROCAL_NONE,
313  RocalTensorOutputType output_datatype = ROCAL_UINT8);
314 
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 
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 
377  int horizonal_flag, int vertical_flag, bool is_output,
378  RocalTensorLayout output_layout = ROCAL_NONE,
379  RocalTensorOutputType output_datatype = ROCAL_UINT8);
380 
391  bool is_output,
392  RocalTensorLayout output_layout = ROCAL_NONE,
393  RocalTensorOutputType output_datatype = ROCAL_UINT8);
394 
407  bool is_output,
408  RocalFloatParam ratio = NULL,
409  RocalTensorLayout output_layout = ROCAL_NONE,
410  RocalTensorOutputType output_datatype = ROCAL_UINT8);
411 
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 
505  bool is_output, RocalFloatParam sdev = NULL,
506  RocalTensorLayout output_layout = ROCAL_NONE,
507  RocalTensorOutputType output_datatype = ROCAL_UINT8);
508 
521  float sdev, bool is_output,
522  RocalTensorLayout output_layout = ROCAL_NONE,
523  RocalTensorOutputType output_datatype = ROCAL_UINT8);
524 
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 
555  int kernel_size, bool is_output, int seed = 0,
556  RocalTensorLayout output_layout = ROCAL_NONE,
557  RocalTensorOutputType output_datatype = ROCAL_UINT8);
558 
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 
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 
615  bool is_output,
616  RocalFloatParam mean = NULL, RocalFloatParam stddev = NULL,
617  int seed = 0,
618  RocalTensorLayout output_layout = ROCAL_NONE,
619  RocalTensorOutputType output_datatype = ROCAL_UINT8);
620 
634  bool is_output,
635  float mean = 0.0, float stddev = 1.0, int seed = 0,
636  RocalTensorLayout output_layout = ROCAL_NONE,
637  RocalTensorOutputType output_datatype = ROCAL_UINT8);
638 
651  bool is_output,
652  RocalFloatParam noise_factor = NULL,
653  int seed = 0,
654  RocalTensorLayout output_layout = ROCAL_NONE,
655  RocalTensorOutputType output_datatype = ROCAL_UINT8);
656 
669  float noise_factor,
670  bool is_output, int seed = 0,
671  RocalTensorLayout output_layout = ROCAL_NONE,
672  RocalTensorOutputType output_datatype = ROCAL_UINT8);
673 
685  bool is_output,
686  RocalTensorLayout output_layout = ROCAL_NONE,
687  RocalTensorOutputType output_datatype = ROCAL_UINT8);
688 
700  bool is_output,
701  RocalIntParam num_bits = NULL,
702  RocalTensorLayout output_layout = ROCAL_NONE,
703  RocalTensorOutputType output_datatype = ROCAL_UINT8);
704 
716  unsigned int num_bits,
717  bool is_output,
718  RocalTensorLayout output_layout = ROCAL_NONE,
719  RocalTensorOutputType output_datatype = ROCAL_UINT8);
720 
732  bool is_output,
733  RocalFloatParam threshold = NULL,
734  RocalTensorLayout output_layout = ROCAL_NONE,
735  RocalTensorOutputType output_datatype = ROCAL_UINT8);
736 
748  float threshold,
749  bool is_output,
750  RocalTensorLayout output_layout = ROCAL_NONE,
751  RocalTensorOutputType output_datatype = ROCAL_UINT8);
752 
764  bool is_output,
765  RocalIntParam quality = NULL,
766  RocalTensorLayout output_layout = ROCAL_NONE,
767  RocalTensorOutputType output_datatype = ROCAL_UINT8);
768 
780  unsigned int quality,
781  bool is_output,
782  RocalTensorLayout output_layout = ROCAL_NONE,
783  RocalTensorOutputType output_datatype = ROCAL_UINT8);
784 
798  bool is_output,
799  RocalFloatParam snow = NULL,
800  RocalFloatParam brightness_coefficient = NULL,
801  RocalIntParam dark_mode = NULL,
802  RocalTensorLayout output_layout = ROCAL_NONE,
803  RocalTensorOutputType output_datatype = ROCAL_UINT8);
804 
818  float snow, bool is_output,
819  float brightness_coefficient = 2.0f,
820  int dark_mode = 0,
821  RocalTensorLayout output_layout = ROCAL_NONE,
822  RocalTensorOutputType output_datatype = ROCAL_UINT8);
823 
839  bool is_output,
840  float rain_percentage = 0.0,
841  int rain_width = 0,
842  int rain_height = 0,
843  float rain_slant_angle = 0.0,
844  RocalFloatParam rain_transparency = NULL,
845  RocalTensorLayout output_layout = ROCAL_NONE,
846  RocalTensorOutputType output_datatype = ROCAL_UINT8);
847 
863  bool is_output,
864  float rain_percentage = 0.0,
865  int rain_width = 0,
866  int rain_height = 0,
867  float rain_slant_angle = 0.0,
868  float rain_transparency = 0.0,
869  RocalTensorLayout output_layout = ROCAL_NONE,
870  RocalTensorOutputType output_datatype = ROCAL_UINT8);
871 
885  bool is_output,
886  RocalIntParam red = NULL, RocalIntParam green = NULL, RocalIntParam blue = NULL,
887  RocalTensorLayout output_layout = ROCAL_NONE,
888  RocalTensorOutputType output_datatype = ROCAL_UINT8);
889 
903  uint8_t red, uint8_t green, uint8_t blue,
904  bool is_output,
905  RocalTensorLayout output_layout = ROCAL_NONE,
906  RocalTensorOutputType output_datatype = ROCAL_UINT8);
907 
919  bool is_output,
920  RocalIntParam adjustment = NULL,
921  RocalTensorLayout output_layout = ROCAL_NONE,
922  RocalTensorOutputType output_datatype = ROCAL_UINT8);
923 
935  int adjustment, bool is_output,
936  RocalTensorLayout output_layout = ROCAL_NONE,
937  RocalTensorOutputType output_datatype = ROCAL_UINT8);
938 
953  bool is_output,
954  RocalFloatParam brightness = NULL,
955  RocalFloatParam contrast = NULL,
956  RocalFloatParam hue = NULL,
957  RocalFloatParam saturation = NULL,
958  RocalTensorLayout output_layout = ROCAL_NONE,
959  RocalTensorOutputType output_datatype = ROCAL_UINT8);
960 
975  float brightness, float contrast, float hue, float saturation,
976  bool is_output,
977  RocalTensorLayout output_layout = ROCAL_NONE,
978  RocalTensorOutputType output_datatype = ROCAL_UINT8);
979 
991  std::vector<unsigned int>& permutation,
992  bool is_output,
993  RocalTensorLayout output_layout = ROCAL_NONE,
994  RocalTensorOutputType output_datatype = ROCAL_UINT8);
995 
1008  bool is_output,
1009  RocalFloatParam intensity_value = NULL,
1010  RocalFloatParam gray_value = NULL,
1011  RocalTensorLayout output_layout = ROCAL_NONE,
1012  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1013 
1026  float fog_value, float gray_value, bool is_output,
1027  RocalTensorLayout output_layout = ROCAL_NONE,
1028  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1029 
1042  std::vector<CameraMatrix> camera_matrix, std::vector<DistortionCoeffs> distortion_coeffs,
1043  bool is_output, RocalTensorLayout output_layout = ROCAL_NONE,
1044  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1045 
1057  bool is_output, float pixelate_percentage = 50.0,
1058  RocalTensorLayout output_layout = ROCAL_NONE,
1059  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1060 
1072  bool is_output,
1073  RocalFloatParam exposure_factor = NULL,
1074  RocalTensorLayout output_layout = ROCAL_NONE,
1075  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1076 
1088  float exposure_factor, bool is_output,
1089  RocalTensorLayout output_layout = ROCAL_NONE,
1090  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1091 
1103  bool is_output,
1104  RocalFloatParam hue = NULL,
1105  RocalTensorLayout output_layout = ROCAL_NONE,
1106  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1107 
1119  float hue,
1120  bool is_output,
1121  RocalTensorLayout output_layout = ROCAL_NONE,
1122  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1123 
1135  bool is_output,
1136  RocalFloatParam saturation = NULL,
1137  RocalTensorLayout output_layout = ROCAL_NONE,
1138  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1139 
1151  float saturation, bool is_output,
1152  RocalTensorLayout output_layout = ROCAL_NONE,
1153  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1154 
1162 extern "C" RocalTensor ROCAL_API_CALL rocalCopy(RocalContext context, RocalTensor input, bool is_output);
1163 
1171 extern "C" RocalTensor ROCAL_API_CALL rocalNop(RocalContext context, RocalTensor input, bool is_output);
1172 
1187  bool is_output,
1188  RocalFloatParam alpha = NULL,
1189  RocalFloatParam beta = NULL,
1190  RocalFloatParam hue = NULL,
1191  RocalFloatParam sat = NULL,
1192  RocalTensorLayout output_layout = ROCAL_NONE,
1193  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1194 
1209  float alpha,
1210  float beta,
1211  float hue,
1212  float sat,
1213  bool is_output,
1214  RocalTensorLayout output_layout = ROCAL_NONE,
1215  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1216 
1234  unsigned crop_height,
1235  unsigned crop_width,
1236  float start_x,
1237  float start_y,
1238  std::vector<float> &mean,
1239  std::vector<float> &std_dev,
1240  bool is_output,
1241  RocalIntParam mirror = NULL,
1242  RocalTensorLayout output_layout = ROCAL_NONE,
1243  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1244 
1260 extern "C" RocalTensor ROCAL_API_CALL rocalCrop(RocalContext context, RocalTensor input, bool is_output,
1261  RocalFloatParam crop_width = NULL,
1262  RocalFloatParam crop_height = NULL,
1263  RocalFloatParam crop_depth = NULL,
1264  RocalFloatParam crop_pox_x = NULL,
1265  RocalFloatParam crop_pos_y = NULL,
1266  RocalFloatParam crop_pos_z = NULL,
1267  RocalTensorLayout output_layout = ROCAL_NONE,
1268  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1269 
1286  unsigned crop_width,
1287  unsigned crop_height,
1288  unsigned crop_depth,
1289  bool is_output,
1290  float crop_pox_x,
1291  float crop_pos_y,
1292  float crop_pos_z,
1293  RocalTensorLayout output_layout = ROCAL_NONE,
1294  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1295 
1309  unsigned crop_width,
1310  unsigned crop_height,
1311  unsigned crop_depth,
1312  bool is_output,
1313  RocalTensorLayout output_layout = ROCAL_NONE,
1314  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1315 
1331  unsigned dest_width, unsigned dest_height,
1332  bool is_output,
1333  unsigned crop_h,
1334  unsigned crop_w,
1335  RocalIntParam mirror,
1336  RocalTensorLayout output_layout = ROCAL_NONE,
1337  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1338 
1354  unsigned dest_width, unsigned dest_height,
1355  bool is_output, RocalFloatParam crop_height = NULL,
1356  RocalFloatParam crop_width = NULL, RocalIntParam mirror = NULL,
1357  RocalTensorLayout output_layout = ROCAL_NONE,
1358  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1359 
1375  bool is_output,
1376  RocalFloatParam crop_area_factor = NULL,
1377  RocalFloatParam crop_aspect_ratio = NULL,
1378  RocalFloatParam crop_pos_x = NULL,
1379  RocalFloatParam crop_pos_y = NULL,
1380  int num_of_attempts = 20,
1381  RocalTensorLayout output_layout = ROCAL_NONE,
1382  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1383 
1400  bool is_output,
1401  RocalFloatParam threshold = NULL,
1402  RocalFloatParam crop_area_factor = NULL,
1403  RocalFloatParam crop_aspect_ratio = NULL,
1404  RocalFloatParam crop_pos_x = NULL,
1405  RocalFloatParam crop_pos_y = NULL,
1406  int num_of_attempts = 20,
1407  RocalTensorLayout output_layout = ROCAL_NONE,
1408  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1409 
1421  RocalTensor input,
1422  bool is_output,
1423  RocalFloatParam preemph_coeff = NULL,
1425  RocalTensorOutputType output_datatype = ROCAL_FP32);
1426 
1444  RocalTensor input,
1445  bool is_output,
1446  std::vector<float> &window_fn,
1447  bool center_windows,
1448  bool reflect_padding,
1449  int power,
1450  int nfft,
1451  int window_length = 512,
1452  int window_step = 256,
1453  RocalTensorLayout output_layout = ROCAL_NFT,
1454  RocalTensorOutputType output_datatype = ROCAL_FP32);
1455 
1468  RocalTensor p_input,
1469  bool is_output,
1470  float cutoff_db,
1471  float multiplier,
1472  float reference_magnitude,
1473  RocalTensorOutputType rocal_tensor_output_type);
1474 
1487  RocalTensor p_input,
1488  RocalTensor p_output_resample_rate,
1489  bool is_output,
1490  float sample_hint,
1491  float quality = 50.0,
1492  RocalTensorOutputType output_datatype = ROCAL_FP32);
1493 
1503  RocalTensor p_input,
1504  bool is_output,
1505  std::vector<float> &range);
1506 
1516  RocalTensor p_input,
1517  bool is_output,
1518  float mean = 0.0,
1519  float stddev = 0.0);
1520 
1530  RocalTensor p_input,
1531  bool is_output,
1532  float scalar = 0.0,
1533  RocalTensorOutputType output_datatype = ROCAL_FP32);
1534 
1544  RocalTensor p_input1,
1545  RocalTensor p_input2,
1546  bool is_output,
1547  RocalTensorOutputType output_datatype = ROCAL_FP32);
1548 
1559  bool is_output,
1560  RocalTensorLayout output_layout = ROCAL_NONE,
1561  RocalTensorOutputType output_datatype = ROCAL_FP32);
1562 
1573  bool is_output,
1574  RocalTensorLayout output_layout = ROCAL_NONE,
1575  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1576 
1587  bool is_output,
1588  RocalTensorLayout output_layout = ROCAL_NONE,
1589  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1590 
1601  bool is_output,
1602  RocalTensorLayout output_layout = ROCAL_NONE,
1603  RocalTensorOutputType output_datatype = ROCAL_FP32);
1604 
1616  RocalTensor mean_tensor,
1617  bool is_output,
1618  RocalTensorLayout output_layout = ROCAL_NONE,
1619  RocalTensorOutputType output_datatype = ROCAL_FP32);
1620 
1633  RocalTensor input,
1634  bool is_output,
1635  float cutoff_db,
1636  float reference_power,
1637  int reset_interval,
1638  int window_length);
1639 
1653  RocalTensor input,
1654  bool is_output,
1655  RocalTensor anchor,
1656  RocalTensor shape,
1657  std::vector<float> fill_values,
1659  RocalTensorOutputType output_datatype = ROCAL_FP32);
1660 
1675  std::vector<unsigned> &axes,
1676  std::vector<float> &mean,
1677  std::vector<float> &std_dev,
1678  bool is_output,
1679  float scale = 1.0, float shift = 0.0,
1680  RocalTensorOutputType output_datatype = ROCAL_FP32);
1681 
1698  RocalTensor p_input,
1699  bool is_output,
1700  float freq_high,
1701  float freq_low,
1702  RocalMelScaleFormula mel_formula,
1703  int nfilter,
1704  bool normalize,
1705  float sample_rate,
1706  RocalTensorOutputType output_datatype);
1707 
1718 extern "C" RocalTensor ROCAL_API_CALL rocalTranspose(RocalContext context, RocalTensor input, std::vector<unsigned> perm, bool is_output,
1719  RocalTensorLayout output_layout = ROCAL_NONE);
1720 
1728  RocalTensor p_input,
1729  bool is_output);
1730 
1742 extern "C" RocalTensor ROCAL_API_CALL rocalPythonFunction(RocalContext context, RocalTensor input, bool is_output, unsigned long long function_id,
1743  std::vector<size_t> output_dims = {}, RocalTensorLayout output_layout = ROCAL_NONE, RocalTensorOutputType output_datatype = ROCAL_FP32);
1744 
1757  bool is_output,
1758  RocalFloatParam alpha,
1759  std::vector<float>& rgb,
1760  RocalTensorLayout output_layout = ROCAL_NONE,
1761  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1762 
1775  float alpha,
1776  std::vector<float>& rgb,
1777  bool is_output,
1778  RocalTensorLayout output_layout = ROCAL_NONE,
1779  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1780 
1796  bool is_output,
1797  unsigned tile_width,
1798  float grid_ratio,
1799  float grid_angle,
1800  unsigned translate_x,
1801  unsigned translate_y,
1802  RocalTensorLayout output_layout = ROCAL_NONE,
1803  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1804 
1817  bool is_output,
1818  unsigned kernel_size = 3,
1820  RocalTensorLayout output_layout = ROCAL_NONE,
1821  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1822 
1836  bool is_output,
1837  RocalFloatParam stddev = NULL,
1838  unsigned kernel_size = 3,
1840  RocalTensorLayout output_layout = ROCAL_NONE,
1841  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1842 
1856  float stddev,
1857  unsigned kernel_size,
1858  RocalImageBorderType border_type,
1859  bool is_output,
1860  RocalTensorLayout output_layout = ROCAL_NONE,
1861  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1862 
1875  bool is_output,
1876  RocalFloatParam stddev = NULL,
1877  RocalTensorLayout output_layout = ROCAL_NONE,
1878  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1879 
1892  float stddev, bool is_output,
1893  RocalTensorLayout output_layout = ROCAL_NONE,
1894  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1895 
1896 
1911  std::vector<float> &min,
1912  std::vector<float> &max,
1913  bool is_output,
1914  RocalTensorLayout output_layout = ROCAL_NONE,
1915  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1916 
1928  bool is_output,
1929  unsigned kernel_size = 3,
1930  RocalTensorLayout output_layout = ROCAL_NONE,
1931  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1932 
1944  bool is_output,
1945  unsigned kernel_size = 3,
1946  RocalTensorLayout output_layout = ROCAL_NONE,
1947  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1948 
1960  bool is_output,
1961  RocalTensorLayout output_layout = ROCAL_NONE,
1962  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1963 
1975  bool is_output,
1976  RocalTensorLayout output_layout = ROCAL_NONE,
1977  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1978 
1993 extern "C" RocalTensor ROCAL_API_CALL rocalWarpPerspective(RocalContext context, RocalTensor input, bool is_output,
1994  unsigned dest_height, unsigned dest_width,
1995  std::vector<float> &perspective,
1997  RocalTensorLayout output_layout = ROCAL_NONE,
1998  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1999 
2013  bool is_output,
2014  std::vector<float> &anchor,
2015  std::vector<float> &shape,
2016  std::vector<unsigned> &num_boxes,
2017  std::vector<float> &fill_value,
2018  RocalTensorLayout output_layout = ROCAL_NONE,
2019  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2020 
2033  RocalTensor input,
2034  bool is_output,
2035  std::vector<unsigned> &permutation,
2036  std::vector<int> &crop_rois,
2037  RocalTensorLayout output_layout = ROCAL_NONE,
2038  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2039 
2052  RocalTensor input1,
2053  RocalTensor input2,
2054  bool is_output,
2055  RocalBitwiseOp op,
2056  RocalTensorLayout output_layout = ROCAL_NONE,
2057  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2058 
2073 extern "C" RocalTensor ROCAL_API_CALL rocalRemap(RocalContext context, RocalTensor input, bool is_output,
2074  unsigned dest_height, unsigned dest_width,
2075  std::vector<float> &row_remap, std::vector<float> &col_remap,
2077  RocalTensorLayout output_layout = ROCAL_NONE,
2078  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2079 
2093  RocalTensor input1, RocalTensor input2,
2094  bool is_output,
2095  std::vector<int> &crop_roi, std::vector<int> &patch_roi,
2096  RocalTensorLayout output_layout = ROCAL_NONE,
2097  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2098 
2106  RocalTensor p_input,
2107  bool is_output);
2108 
2126  bool is_output,
2127  RocalFloatParam amplitude_x = NULL,
2128  RocalFloatParam amplitude_y = NULL,
2129  RocalFloatParam frequency_x = NULL,
2130  RocalFloatParam frequency_y = NULL,
2131  RocalFloatParam phase_x = NULL,
2132  RocalFloatParam phase_y = NULL,
2133  RocalTensorLayout output_layout = ROCAL_NONE,
2134  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2135 
2153  float amplitude_x, float amplitude_y,
2154  float frequency_x, float frequency_y,
2155  float phase_x, float phase_y,
2156  bool is_output,
2157  RocalTensorLayout output_layout = ROCAL_NONE,
2158  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2159 
2171  bool is_output, int subpixel_layout = 0,
2172  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2173 
2174 #endif // MIVISIONX_ROCAL_API_AUGMENTATION_H
class representing rocal tensor
Definition: rocal_api_tensor.h:38
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 rocalPosterize(RocalContext context, RocalTensor input, bool is_output, RocalIntParam num_bits=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies posterize effect on images.
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 rocalSnow(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam snow=NULL, RocalFloatParam brightness_coefficient=NULL, RocalIntParam dark_mode=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies snow 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 rocalColorToGreyscale(RocalContext context, RocalTensor input, bool is_output, int subpixel_layout=0, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Converts color images to greyscale.
RocalTensor ROCAL_API_CALL rocalGaussianFilterFixed(RocalContext context, RocalTensor input, float stddev, unsigned kernel_size, RocalImageBorderType border_type, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian filter to images with fixed stddev.
RocalTensor ROCAL_API_CALL rocalSnowFixed(RocalContext context, RocalTensor input, float snow, bool is_output, float brightness_coefficient=2.0f, int dark_mode=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies snow effect on images with fixed parameters.
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 rocalCropAndPatch(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, std::vector< int > &crop_roi, std::vector< int > &patch_roi, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Crops and patches regions between two input tensors based on provided ROIs.
RocalTensor ROCAL_API_CALL rocalWaterFixed(RocalContext context, RocalTensor input, float amplitude_x, float amplitude_y, float frequency_x, float frequency_y, float phase_x, float phase_y, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies water effect on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalPythonFunction(RocalContext context, RocalTensor input, bool is_output, unsigned long long function_id, std::vector< size_t > output_dims={}, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_FP32)
Executes the python function using its function ID and returns the output.
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 rocalWarpPerspective(RocalContext context, RocalTensor input, bool is_output, unsigned dest_height, unsigned dest_width, std::vector< float > &perspective, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies perspective transformation to images.
RocalTensor ROCAL_API_CALL rocalTensorMin(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Computes tensor minimum per image.
RocalTensor ROCAL_API_CALL rocalDilate(RocalContext context, RocalTensor input, bool is_output, unsigned kernel_size=3, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies dilate to images (morphological operation).
RocalTensor ROCAL_API_CALL rocalErode(RocalContext context, RocalTensor input, bool is_output, unsigned kernel_size=3, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies erode to images (morphological operation).
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 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 rocalPhase(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Computes phase given two input tensors.
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 rocalShotNoise(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam noise_factor=NULL, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies shot noise effect on images.
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 rocalColorJitter(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam brightness=NULL, RocalFloatParam contrast=NULL, RocalFloatParam hue=NULL, RocalFloatParam saturation=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies color jitter augmentation on 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.
RocalTensor ROCAL_API_CALL rocalTensorMax(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Computes tensor maximum per image.
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 rocalGridMask(RocalContext context, RocalTensor input, bool is_output, unsigned tile_width, float grid_ratio, float grid_angle, unsigned translate_x, unsigned translate_y, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies a grid mask effect to images by overlaying a grid of transparent/opaque tiles.
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 rocalRicap(RocalContext context, RocalTensor input, bool is_output, std::vector< unsigned > &permutation, std::vector< int > &crop_rois, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Random Image Cropping And Patching (RICAP).
RocalTensor ROCAL_API_CALL rocalThreshold(RocalContext context, RocalTensor input, std::vector< float > &min, std::vector< float > &max, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies thresholding to images.
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 rocalSpatterFixed(RocalContext context, RocalTensor input, uint8_t red, uint8_t green, uint8_t blue, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies spatter effect on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalTensorSum(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_FP32)
Computes tensor sum per image.
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 rocalRemap(RocalContext context, RocalTensor input, bool is_output, unsigned dest_height, unsigned dest_width, std::vector< float > &row_remap, std::vector< float > &col_remap, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies remap to images using per-pixel row/col lookup tables.
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 rocalLUT(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies Look-Up Table (LUT) transformation to images.
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 rocalSolarizeFixed(RocalContext context, RocalTensor input, float threshold, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies solarize effect on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalGaussianFilter(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam stddev=NULL, unsigned kernel_size=3, RocalImageBorderType border_type=RocalImageBorderType::ROCAL_REPLICATE, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian filter to images with per-sample stddev parameter.
RocalTensor ROCAL_API_CALL rocalColorJitterFixed(RocalContext context, RocalTensor input, float brightness, float contrast, float hue, float saturation, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies color jitter augmentation on images with fixed parameters.
RocalTensor ROCAL_API_CALL rocalGaussianNoise(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam mean=NULL, RocalFloatParam stddev=NULL, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian noise effect on 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 rocalErase(RocalContext context, RocalTensor input, bool is_output, std::vector< float > &anchor, std::vector< float > &shape, std::vector< unsigned > &num_boxes, std::vector< float > &fill_value, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Erases regions in images using raw vectors (no parameters/tensors).
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 rocalJpegCompressionDistortion(RocalContext context, RocalTensor input, bool is_output, RocalIntParam quality=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies JPEG compression distortion on 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 rocalGaussianNoiseFixed(RocalContext context, RocalTensor input, bool is_output, float mean=0.0, float stddev=1.0, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian noise on images with fixed parameters.
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 rocalNonLinearBlendFixed(RocalContext context, RocalTensor input1, RocalTensor input2, float stddev, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Non-linear blend of two input images using a fixed stddev parameter.
RocalTensor ROCAL_API_CALL rocalColorCastFixed(RocalContext context, RocalTensor input, float alpha, std::vector< float > &rgb, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies color cast to 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 rocalSolarize(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam threshold=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies solarize effect on images.
RocalTensor ROCAL_API_CALL rocalBitwiseOps(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, RocalBitwiseOp op, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Performs bitwise operations (AND/OR/XOR) elementwise on two input tensors.
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 rocalShotNoiseFixed(RocalContext context, RocalTensor input, float noise_factor, bool is_output, int seed=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies shot noise on 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 rocalWater(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam amplitude_x=NULL, RocalFloatParam amplitude_y=NULL, RocalFloatParam frequency_x=NULL, RocalFloatParam frequency_y=NULL, RocalFloatParam phase_x=NULL, RocalFloatParam phase_y=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies water effect on images.
RocalTensor ROCAL_API_CALL rocalPosterizeFixed(RocalContext context, RocalTensor input, unsigned int num_bits, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies posterize effect on images with fixed parameters.
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 rocalMedianFilter(RocalContext context, RocalTensor input, bool is_output, unsigned kernel_size=3, RocalImageBorderType border_type=RocalImageBorderType::ROCAL_REPLICATE, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies median filter to images.
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 rocalChannelPermute(RocalContext context, RocalTensor input, std::vector< unsigned int > &permutation, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Permutes the channels of the input image.
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 rocalTensorStdDev(RocalContext context, RocalTensor input, RocalTensor mean_tensor, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_FP32)
Computes tensor standard deviation per image using precomputed means.
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 rocalMagnitude(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Computes magnitude given two input tensors.
RocalTensor ROCAL_API_CALL rocalColorCast(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam alpha, std::vector< float > &rgb, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies color cast to images by blending a per-sample RGB color with input using alpha.
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 rocalJpegCompressionDistortionFixed(RocalContext context, RocalTensor input, unsigned int quality, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies JPEG compression distortion on images with fixed parameters.
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 rocalSpatter(RocalContext context, RocalTensor input, bool is_output, RocalIntParam red=NULL, RocalIntParam green=NULL, RocalIntParam blue=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies spatter effect on images.
RocalTensor ROCAL_API_CALL rocalNonLinearBlend(RocalContext context, RocalTensor input1, RocalTensor input2, bool is_output, RocalFloatParam stddev=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Non-linear blend of two input images using per-sample stddev parameter.
RocalTensor ROCAL_API_CALL rocalTensorMean(RocalContext context, RocalTensor input, bool is_output, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_FP32)
Computes tensor mean per image.
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.
RocalImageBorderType
rocAL Image Border Type enum
Definition: rocal_api_types.h:472
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:327
RocalTensorLayout
rocAL Tensor Layout enum
Definition: rocal_api_types.h:209
RocalMelScaleFormula
rocAL MelScale formula enum
Definition: rocal_api_types.h:442
RocalTensorOutputType
rocAL Tensor Output Type enum
Definition: rocal_api_types.h:247
void * RocalIntParam
typedef void* rocAL Int Param
Definition: rocal_api_types.h:59
RocalBitwiseOp
rocAL Bitwise Operation enum
Definition: rocal_api_types.h:547
RocalOutOfBoundsPolicy
rocAL Out Of Bounds Policy Type enum
Definition: rocal_api_types.h:427
RocalAudioBorderType
rocAL Audio Border Type enum
Definition: rocal_api_types.h:412
void * RocalFloatParam
typedef void* Float Param
Definition: rocal_api_types.h:54
void * RocalContext
typedef void* rocAL Context
Definition: rocal_api_types.h:64
RocalResizeInterpolationType
rocAL Resize Interpolation Type enum
Definition: rocal_api_types.h:349
@ ROCAL_REPLICATE
AMD ROCAL_REPLICATE.
Definition: rocal_api_types.h:475
@ 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:333
@ ROCAL_NONE
AMD ROCAL_NONE.
Definition: rocal_api_types.h:241
@ ROCAL_NFT
AMD ROCAL_NFT Spectrogram Layout FT.
Definition: rocal_api_types.h:228
@ ROCAL_FP32
AMD ROCAL_FP32.
Definition: rocal_api_types.h:250
@ ROCAL_UINT8
AMD ROCAL_UINT8.
Definition: rocal_api_types.h:256
@ ROCAL_ERROR
Error.
Definition: rocal_api_types.h:436
@ ROCAL_CLAMP
AMD ROCAL_CLAMP.
Definition: rocal_api_types.h:418
@ ROCAL_LINEAR_INTERPOLATION
AMD ROCAL_LINEAR_INTERPOLATION.
Definition: rocal_api_types.h:355
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 rocalLog(RocalContext p_context, RocalTensor p_input, bool is_output)
Computes the natural logarithm of input element-wise 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:36
RocalNSROutput contains the anchor and shape tensor for NonSilentRegionDetection.
Definition: rocal_api_tensor.h:87