/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_tensor.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 
262 extern "C" RocalTensor ROCAL_API_CALL rocalBrightness(RocalContext context, RocalTensor input, bool is_output,
263  RocalFloatParam alpha = NULL, RocalFloatParam beta = NULL, RocalIntParam conditional_execution = NULL,
264  RocalTensorLayout output_layout = ROCAL_NONE,
265  RocalTensorOutputType output_datatype = ROCAL_UINT8);
266 
280  float alpha, float beta,
281  bool is_output, int conditional_execution = 1,
282  RocalTensorLayout output_layout = ROCAL_NONE,
283  RocalTensorOutputType output_datatype = ROCAL_UINT8);
284 
296  bool is_output,
297  RocalFloatParam gamma = NULL,
298  RocalTensorLayout output_layout = ROCAL_NONE,
299  RocalTensorOutputType output_datatype = ROCAL_UINT8);
300 
312  float gamma,
313  bool is_output,
314  RocalTensorLayout output_layout = ROCAL_NONE,
315  RocalTensorOutputType output_datatype = ROCAL_UINT8);
316 
329  bool is_output,
330  RocalFloatParam contrast_factor = NULL, RocalFloatParam contrast_center = NULL,
331  RocalTensorLayout output_layout = ROCAL_NONE,
332  RocalTensorOutputType output_datatype = ROCAL_UINT8);
333 
346  float contrast_factor, float contrast_center,
347  bool is_output,
348  RocalTensorLayout output_layout = ROCAL_NONE,
349  RocalTensorOutputType output_datatype = ROCAL_UINT8);
350 
363 extern "C" RocalTensor ROCAL_API_CALL rocalFlip(RocalContext context, RocalTensor input, bool is_output,
364  RocalIntParam horizonal_flag = NULL, RocalIntParam vertical_flag = NULL, RocalIntParam depth_flag = NULL,
365  RocalTensorLayout output_layout = ROCAL_NONE,
366  RocalTensorOutputType output_datatype = ROCAL_UINT8);
367 
381  int horizonal_flag, int vertical_flag, bool is_output, int depth_flag = 0,
382  RocalTensorLayout output_layout = ROCAL_NONE,
383  RocalTensorOutputType output_datatype = ROCAL_UINT8);
384 
395  bool is_output,
396  RocalTensorLayout output_layout = ROCAL_NONE,
397  RocalTensorOutputType output_datatype = ROCAL_UINT8);
398 
411  bool is_output,
412  RocalFloatParam ratio = NULL,
413  RocalTensorLayout output_layout = ROCAL_NONE,
414  RocalTensorOutputType output_datatype = ROCAL_UINT8);
415 
428  float ratio, bool is_output,
429  RocalTensorLayout output_layout = ROCAL_NONE,
430  RocalTensorOutputType output_datatype = ROCAL_UINT8);
431 
450 extern "C" RocalTensor ROCAL_API_CALL rocalWarpAffine(RocalContext context, RocalTensor input, bool is_output,
451  unsigned dest_height = 0, unsigned dest_width = 0,
452  RocalFloatParam x0 = NULL, RocalFloatParam x1 = NULL,
453  RocalFloatParam y0 = NULL, RocalFloatParam y1 = NULL,
454  RocalFloatParam o0 = NULL, RocalFloatParam o1 = NULL,
456  RocalTensorLayout output_layout = ROCAL_NONE,
457  RocalTensorOutputType output_datatype = ROCAL_UINT8);
458 
477 extern "C" RocalTensor ROCAL_API_CALL rocalWarpAffineFixed(RocalContext context, RocalTensor input, float x0, float x1,
478  float y0, float y1, float o0, float o1, bool is_output,
479  unsigned int dest_height = 0, unsigned int dest_width = 0,
481  RocalTensorLayout output_layout = ROCAL_NONE,
482  RocalTensorOutputType output_datatype = ROCAL_UINT8);
483 
493 extern "C" RocalTensor ROCAL_API_CALL rocalFishEye(RocalContext context, RocalTensor input, bool is_output,
494  RocalTensorLayout output_layout = ROCAL_NONE,
495  RocalTensorOutputType output_datatype = ROCAL_UINT8);
496 
509  bool is_output, RocalFloatParam sdev = NULL,
510  RocalTensorLayout output_layout = ROCAL_NONE,
511  RocalTensorOutputType output_datatype = ROCAL_UINT8);
512 
525  float sdev, bool is_output,
526  RocalTensorLayout output_layout = ROCAL_NONE,
527  RocalTensorOutputType output_datatype = ROCAL_UINT8);
528 
541  bool is_output,
542  RocalIntParam kernel_size = NULL,
543  int seed = 0,
544  RocalTensorLayout output_layout = ROCAL_NONE,
545  RocalTensorOutputType output_datatype = ROCAL_UINT8);
546 
559  int kernel_size, bool is_output, int seed = 0,
560  RocalTensorLayout output_layout = ROCAL_NONE,
561  RocalTensorOutputType output_datatype = ROCAL_UINT8);
562 
578  bool is_output,
579  RocalFloatParam noise_prob = NULL, RocalFloatParam salt_prob = NULL,
580  RocalFloatParam salt_val = NULL, RocalFloatParam pepper_val = NULL,
581  int seed = 0,
582  RocalTensorLayout output_layout = ROCAL_NONE,
583  RocalTensorOutputType output_datatype = ROCAL_UINT8);
584 
600  float noise_prob, float salt_prob,
601  float salt_val, float pepper_val,
602  bool is_output, int seed = 0,
603  RocalTensorLayout output_layout = ROCAL_NONE,
604  RocalTensorOutputType output_datatype = ROCAL_UINT8);
605 
620  bool is_output,
621  RocalFloatParam mean = NULL, RocalFloatParam stddev = NULL,
622  int seed = 0, RocalIntParam conditional_execution = NULL,
623  RocalTensorLayout output_layout = ROCAL_NONE,
624  RocalTensorOutputType output_datatype = ROCAL_UINT8);
625 
640  bool is_output,
641  float mean = 0.0, float stddev = 1.0, int seed = 0, int conditional_execution = 1,
642  RocalTensorLayout output_layout = ROCAL_NONE,
643  RocalTensorOutputType output_datatype = ROCAL_UINT8);
644 
657  bool is_output,
658  RocalFloatParam noise_factor = NULL,
659  int seed = 0,
660  RocalTensorLayout output_layout = ROCAL_NONE,
661  RocalTensorOutputType output_datatype = ROCAL_UINT8);
662 
675  float noise_factor,
676  bool is_output, int seed = 0,
677  RocalTensorLayout output_layout = ROCAL_NONE,
678  RocalTensorOutputType output_datatype = ROCAL_UINT8);
679 
691  bool is_output,
692  RocalTensorLayout output_layout = ROCAL_NONE,
693  RocalTensorOutputType output_datatype = ROCAL_UINT8);
694 
706  bool is_output,
707  RocalIntParam num_bits = NULL,
708  RocalTensorLayout output_layout = ROCAL_NONE,
709  RocalTensorOutputType output_datatype = ROCAL_UINT8);
710 
722  unsigned int num_bits,
723  bool is_output,
724  RocalTensorLayout output_layout = ROCAL_NONE,
725  RocalTensorOutputType output_datatype = ROCAL_UINT8);
726 
738  bool is_output,
739  RocalFloatParam threshold = NULL,
740  RocalTensorLayout output_layout = ROCAL_NONE,
741  RocalTensorOutputType output_datatype = ROCAL_UINT8);
742 
754  float threshold,
755  bool is_output,
756  RocalTensorLayout output_layout = ROCAL_NONE,
757  RocalTensorOutputType output_datatype = ROCAL_UINT8);
758 
770  bool is_output,
771  RocalIntParam quality = NULL,
772  RocalTensorLayout output_layout = ROCAL_NONE,
773  RocalTensorOutputType output_datatype = ROCAL_UINT8);
774 
786  unsigned int quality,
787  bool is_output,
788  RocalTensorLayout output_layout = ROCAL_NONE,
789  RocalTensorOutputType output_datatype = ROCAL_UINT8);
790 
804  bool is_output,
805  RocalFloatParam snow = NULL,
806  RocalFloatParam brightness_coefficient = NULL,
807  RocalIntParam dark_mode = NULL,
808  RocalTensorLayout output_layout = ROCAL_NONE,
809  RocalTensorOutputType output_datatype = ROCAL_UINT8);
810 
824  float snow, bool is_output,
825  float brightness_coefficient = 2.0f,
826  int dark_mode = 0,
827  RocalTensorLayout output_layout = ROCAL_NONE,
828  RocalTensorOutputType output_datatype = ROCAL_UINT8);
829 
845  bool is_output,
846  float rain_percentage = 0.0,
847  int rain_width = 0,
848  int rain_height = 0,
849  float rain_slant_angle = 0.0,
850  RocalFloatParam rain_transparency = NULL,
851  RocalTensorLayout output_layout = ROCAL_NONE,
852  RocalTensorOutputType output_datatype = ROCAL_UINT8);
853 
869  bool is_output,
870  float rain_percentage = 0.0,
871  int rain_width = 0,
872  int rain_height = 0,
873  float rain_slant_angle = 0.0,
874  float rain_transparency = 0.0,
875  RocalTensorLayout output_layout = ROCAL_NONE,
876  RocalTensorOutputType output_datatype = ROCAL_UINT8);
877 
891  bool is_output,
892  RocalIntParam red = NULL, RocalIntParam green = NULL, RocalIntParam blue = NULL,
893  RocalTensorLayout output_layout = ROCAL_NONE,
894  RocalTensorOutputType output_datatype = ROCAL_UINT8);
895 
909  uint8_t red, uint8_t green, uint8_t blue,
910  bool is_output,
911  RocalTensorLayout output_layout = ROCAL_NONE,
912  RocalTensorOutputType output_datatype = ROCAL_UINT8);
913 
925  bool is_output,
926  RocalIntParam adjustment = NULL,
927  RocalTensorLayout output_layout = ROCAL_NONE,
928  RocalTensorOutputType output_datatype = ROCAL_UINT8);
929 
941  int adjustment, bool is_output,
942  RocalTensorLayout output_layout = ROCAL_NONE,
943  RocalTensorOutputType output_datatype = ROCAL_UINT8);
944 
961  bool is_output,
962  RocalFloatParam brightness = NULL,
963  RocalFloatParam contrast = NULL,
964  RocalFloatParam hue = NULL,
965  RocalFloatParam saturation = NULL,
966  RocalTensorLayout output_layout = ROCAL_NONE,
967  RocalTensorOutputType output_datatype = ROCAL_UINT8);
968 
985  float brightness, float contrast, float hue, float saturation,
986  bool is_output,
987  RocalTensorLayout output_layout = ROCAL_NONE,
988  RocalTensorOutputType output_datatype = ROCAL_UINT8);
989 
1001  std::vector<unsigned int>& permutation,
1002  bool is_output,
1003  RocalTensorLayout output_layout = ROCAL_NONE,
1004  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1005 
1018  bool is_output,
1019  RocalFloatParam intensity_value = NULL,
1020  RocalFloatParam gray_value = NULL,
1021  RocalTensorLayout output_layout = ROCAL_NONE,
1022  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1023 
1036  float fog_value, float gray_value, bool is_output,
1037  RocalTensorLayout output_layout = ROCAL_NONE,
1038  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1039 
1052  std::vector<CameraMatrix> camera_matrix, std::vector<DistortionCoeffs> distortion_coeffs,
1053  bool is_output, RocalTensorLayout output_layout = ROCAL_NONE,
1054  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1055 
1067  bool is_output, float pixelate_percentage = 50.0,
1068  RocalTensorLayout output_layout = ROCAL_NONE,
1069  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1070 
1082  bool is_output,
1083  RocalFloatParam exposure_factor = NULL,
1084  RocalTensorLayout output_layout = ROCAL_NONE,
1085  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1086 
1098  float exposure_factor, bool is_output,
1099  RocalTensorLayout output_layout = ROCAL_NONE,
1100  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1101 
1113  bool is_output,
1114  RocalFloatParam hue = NULL,
1115  RocalTensorLayout output_layout = ROCAL_NONE,
1116  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1117 
1129  float hue,
1130  bool is_output,
1131  RocalTensorLayout output_layout = ROCAL_NONE,
1132  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1133 
1145  bool is_output,
1146  RocalFloatParam saturation = NULL,
1147  RocalTensorLayout output_layout = ROCAL_NONE,
1148  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1149 
1161  float saturation, bool is_output,
1162  RocalTensorLayout output_layout = ROCAL_NONE,
1163  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1164 
1172 extern "C" RocalTensor ROCAL_API_CALL rocalCopy(RocalContext context, RocalTensor input, bool is_output);
1173 
1184 extern "C" RocalTensor ROCAL_API_CALL rocalNop(RocalContext context, RocalTensor input, bool is_output);
1185 
1200  bool is_output,
1201  RocalFloatParam alpha = NULL,
1202  RocalFloatParam beta = NULL,
1203  RocalFloatParam hue = NULL,
1204  RocalFloatParam sat = NULL,
1205  RocalTensorLayout output_layout = ROCAL_NONE,
1206  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1207 
1222  float alpha,
1223  float beta,
1224  float hue,
1225  float sat,
1226  bool is_output,
1227  RocalTensorLayout output_layout = ROCAL_NONE,
1228  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1229 
1247  unsigned crop_height,
1248  unsigned crop_width,
1249  float start_x,
1250  float start_y,
1251  std::vector<float> &mean,
1252  std::vector<float> &std_dev,
1253  bool is_output,
1254  RocalIntParam mirror = NULL,
1255  RocalTensorLayout output_layout = ROCAL_NONE,
1256  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1257 
1273 extern "C" RocalTensor ROCAL_API_CALL rocalCrop(RocalContext context, RocalTensor input, bool is_output,
1274  RocalFloatParam crop_width = NULL,
1275  RocalFloatParam crop_height = NULL,
1276  RocalFloatParam crop_depth = NULL,
1277  RocalFloatParam crop_pox_x = NULL,
1278  RocalFloatParam crop_pos_y = NULL,
1279  RocalFloatParam crop_pos_z = NULL,
1280  RocalTensorLayout output_layout = ROCAL_NONE,
1281  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1282 
1299  unsigned crop_width,
1300  unsigned crop_height,
1301  unsigned crop_depth,
1302  bool is_output,
1303  float crop_pox_x,
1304  float crop_pos_y,
1305  float crop_pos_z,
1306  RocalTensorLayout output_layout = ROCAL_NONE,
1307  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1308 
1322  unsigned crop_width,
1323  unsigned crop_height,
1324  unsigned crop_depth,
1325  bool is_output,
1326  RocalTensorLayout output_layout = ROCAL_NONE,
1327  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1328 
1344  unsigned dest_width, unsigned dest_height,
1345  bool is_output,
1346  unsigned crop_h,
1347  unsigned crop_w,
1348  RocalIntParam mirror,
1349  RocalTensorLayout output_layout = ROCAL_NONE,
1350  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1351 
1367  unsigned dest_width, unsigned dest_height,
1368  bool is_output, RocalFloatParam crop_height = NULL,
1369  RocalFloatParam crop_width = NULL, RocalIntParam mirror = NULL,
1370  RocalTensorLayout output_layout = ROCAL_NONE,
1371  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1372 
1388  bool is_output,
1389  RocalFloatParam crop_area_factor = NULL,
1390  RocalFloatParam crop_aspect_ratio = NULL,
1391  RocalFloatParam crop_pos_x = NULL,
1392  RocalFloatParam crop_pos_y = NULL,
1393  int num_of_attempts = 20,
1394  RocalTensorLayout output_layout = ROCAL_NONE,
1395  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1396 
1413  bool is_output,
1414  RocalFloatParam threshold = NULL,
1415  RocalFloatParam crop_area_factor = NULL,
1416  RocalFloatParam crop_aspect_ratio = NULL,
1417  RocalFloatParam crop_pos_x = NULL,
1418  RocalFloatParam crop_pos_y = NULL,
1419  int num_of_attempts = 20,
1420  RocalTensorLayout output_layout = ROCAL_NONE,
1421  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1422 
1434  RocalTensor input,
1435  bool is_output,
1436  RocalFloatParam preemph_coeff = NULL,
1438  RocalTensorOutputType output_datatype = ROCAL_FP32);
1439 
1457  RocalTensor input,
1458  bool is_output,
1459  std::vector<float> &window_fn,
1460  bool center_windows,
1461  bool reflect_padding,
1462  int power,
1463  int nfft,
1464  int window_length = 512,
1465  int window_step = 256,
1466  RocalTensorLayout output_layout = ROCAL_NFT,
1467  RocalTensorOutputType output_datatype = ROCAL_FP32);
1468 
1481  RocalTensor p_input,
1482  bool is_output,
1483  float cutoff_db,
1484  float multiplier,
1485  float reference_magnitude,
1486  RocalTensorOutputType rocal_tensor_output_type);
1487 
1500  RocalTensor p_input,
1501  RocalTensor p_output_resample_rate,
1502  bool is_output,
1503  float sample_hint,
1504  float quality = 50.0,
1505  RocalTensorOutputType output_datatype = ROCAL_FP32);
1506 
1516  RocalTensor p_input,
1517  bool is_output,
1518  std::vector<float> &range);
1519 
1529  RocalTensor p_input,
1530  bool is_output,
1531  float mean = 0.0,
1532  float stddev = 0.0);
1533 
1543  RocalTensor p_input,
1544  bool is_output,
1545  float scalar = 0.0,
1546  RocalTensorOutputType output_datatype = ROCAL_FP32);
1547 
1557  RocalTensor p_input1,
1558  RocalTensor p_input2,
1559  bool is_output,
1560  RocalTensorOutputType output_datatype = ROCAL_FP32);
1561 
1572  bool is_output,
1573  RocalTensorLayout output_layout = ROCAL_NONE,
1574  RocalTensorOutputType output_datatype = ROCAL_FP32);
1575 
1586  bool is_output,
1587  RocalTensorLayout output_layout = ROCAL_NONE,
1588  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1589 
1600  bool is_output,
1601  RocalTensorLayout output_layout = ROCAL_NONE,
1602  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1603 
1614  bool is_output,
1615  RocalTensorLayout output_layout = ROCAL_NONE,
1616  RocalTensorOutputType output_datatype = ROCAL_FP32);
1617 
1629  RocalTensor mean_tensor,
1630  bool is_output,
1631  RocalTensorLayout output_layout = ROCAL_NONE,
1632  RocalTensorOutputType output_datatype = ROCAL_FP32);
1633 
1646  RocalTensor input,
1647  bool is_output,
1648  float cutoff_db,
1649  float reference_power,
1650  int reset_interval,
1651  int window_length);
1652 
1666  RocalTensor input,
1667  bool is_output,
1668  RocalTensor anchor,
1669  RocalTensor shape,
1670  std::vector<float> fill_values,
1672  RocalTensorOutputType output_datatype = ROCAL_FP32);
1673 
1687  RocalTensor input,
1688  bool is_output,
1689  RocalTensor anchor,
1690  std::vector<int> shape,
1691  std::vector<float> fill_values,
1693  RocalTensorOutputType output_datatype = ROCAL_FP32);
1694 
1709  std::vector<unsigned> &axes,
1710  std::vector<float> &mean,
1711  std::vector<float> &std_dev,
1712  bool is_output,
1713  float scale = 1.0, float shift = 0.0,
1714  RocalTensorOutputType output_datatype = ROCAL_FP32);
1715 
1732  RocalTensor p_input,
1733  bool is_output,
1734  float freq_high,
1735  float freq_low,
1736  RocalMelScaleFormula mel_formula,
1737  int nfilter,
1738  bool normalize,
1739  float sample_rate,
1740  RocalTensorOutputType output_datatype);
1741 
1752 extern "C" RocalTensor ROCAL_API_CALL rocalTranspose(RocalContext context, RocalTensor input, std::vector<unsigned> perm, bool is_output,
1753  RocalTensorLayout output_layout = ROCAL_NONE);
1754 
1762  RocalTensor p_input,
1763  bool is_output);
1764 
1776 extern "C" RocalTensor ROCAL_API_CALL rocalPythonFunction(RocalContext context, RocalTensor input, bool is_output, unsigned long long function_id,
1777  std::vector<size_t> output_dims = {}, RocalTensorLayout output_layout = ROCAL_NONE, RocalTensorOutputType output_datatype = ROCAL_FP32);
1778 
1791  bool is_output,
1792  RocalFloatParam alpha,
1793  std::vector<float>& rgb,
1794  RocalTensorLayout output_layout = ROCAL_NONE,
1795  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1796 
1809  float alpha,
1810  std::vector<float>& rgb,
1811  bool is_output,
1812  RocalTensorLayout output_layout = ROCAL_NONE,
1813  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1814 
1830  bool is_output,
1831  unsigned tile_width,
1832  float grid_ratio,
1833  float grid_angle,
1834  unsigned translate_x,
1835  unsigned translate_y,
1836  RocalTensorLayout output_layout = ROCAL_NONE,
1837  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1838 
1851  bool is_output,
1852  unsigned kernel_size = 3,
1854  RocalTensorLayout output_layout = ROCAL_NONE,
1855  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1856 
1870  bool is_output,
1871  RocalFloatParam stddev = NULL,
1872  unsigned kernel_size = 3,
1874  RocalTensorLayout output_layout = ROCAL_NONE,
1875  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1876 
1890  float stddev,
1891  unsigned kernel_size,
1892  RocalImageBorderType border_type,
1893  bool is_output,
1894  RocalTensorLayout output_layout = ROCAL_NONE,
1895  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1896 
1909  bool is_output,
1910  RocalFloatParam stddev = NULL,
1911  RocalTensorLayout output_layout = ROCAL_NONE,
1912  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1913 
1926  float stddev, bool is_output,
1927  RocalTensorLayout output_layout = ROCAL_NONE,
1928  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1929 
1930 
1945  std::vector<float> &min,
1946  std::vector<float> &max,
1947  bool is_output,
1948  RocalTensorLayout output_layout = ROCAL_NONE,
1949  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1950 
1962  bool is_output,
1963  unsigned kernel_size = 3,
1964  RocalTensorLayout output_layout = ROCAL_NONE,
1965  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1966 
1978  bool is_output,
1979  unsigned kernel_size = 3,
1980  RocalTensorLayout output_layout = ROCAL_NONE,
1981  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1982 
1994  bool is_output,
1995  RocalTensorLayout output_layout = ROCAL_NONE,
1996  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1997 
2009  bool is_output,
2010  RocalTensorLayout output_layout = ROCAL_NONE,
2011  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2012 
2027 extern "C" RocalTensor ROCAL_API_CALL rocalWarpPerspective(RocalContext context, RocalTensor input, bool is_output,
2028  unsigned dest_height, unsigned dest_width,
2029  std::vector<float> &perspective,
2031  RocalTensorLayout output_layout = ROCAL_NONE,
2032  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2033 
2048  bool is_output,
2049  std::vector<float> &anchor,
2050  std::vector<float> &shape,
2051  std::vector<unsigned> &num_boxes,
2052  std::vector<float> &fill_value,
2053  RocalTensorLayout output_layout = ROCAL_NONE,
2054  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2055 
2068  RocalTensor input,
2069  bool is_output,
2070  std::vector<unsigned> &permutation,
2071  std::vector<int> &crop_rois,
2072  RocalTensorLayout output_layout = ROCAL_NONE,
2073  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2074 
2087  RocalTensor input1,
2088  RocalTensor input2,
2089  bool is_output,
2090  RocalBitwiseOp op,
2091  RocalTensorLayout output_layout = ROCAL_NONE,
2092  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2093 
2108 extern "C" RocalTensor ROCAL_API_CALL rocalRemap(RocalContext context, RocalTensor input, bool is_output,
2109  unsigned dest_height, unsigned dest_width,
2110  std::vector<float> &row_remap, std::vector<float> &col_remap,
2112  RocalTensorLayout output_layout = ROCAL_NONE,
2113  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2114 
2128  RocalTensor input1, RocalTensor input2,
2129  bool is_output,
2130  std::vector<int> &crop_roi, std::vector<int> &patch_roi,
2131  RocalTensorLayout output_layout = ROCAL_NONE,
2132  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2133 
2141  RocalTensor p_input,
2142  bool is_output);
2143 
2161  bool is_output,
2162  RocalFloatParam amplitude_x = NULL,
2163  RocalFloatParam amplitude_y = NULL,
2164  RocalFloatParam frequency_x = NULL,
2165  RocalFloatParam frequency_y = NULL,
2166  RocalFloatParam phase_x = NULL,
2167  RocalFloatParam phase_y = NULL,
2168  RocalTensorLayout output_layout = ROCAL_NONE,
2169  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2170 
2188  float amplitude_x, float amplitude_y,
2189  float frequency_x, float frequency_y,
2190  float phase_x, float phase_y,
2191  bool is_output,
2192  RocalTensorLayout output_layout = ROCAL_NONE,
2193  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2194 
2206  bool is_output, int subpixel_layout = 0,
2207  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2208 
2209 #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 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 rocalFlipFixed(RocalContext context, RocalTensor input, int horizonal_flag, int vertical_flag, bool is_output, int depth_flag=0, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Flip images horizontally and/or vertically with fixed parameters.
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 rocalSliceFixed(RocalContext context, RocalTensor input, bool is_output, RocalTensor anchor, std::vector< int > shape, std::vector< float > fill_values, RocalOutOfBoundsPolicy policy=RocalOutOfBoundsPolicy::ROCAL_ERROR, RocalTensorOutputType output_datatype=ROCAL_FP32)
Applies slice augmentation on tensors with a fixed output shape (same for every sample in the batch).
RocalTensor ROCAL_API_CALL rocalFlip(RocalContext context, RocalTensor input, bool is_output, RocalIntParam horizonal_flag=NULL, RocalIntParam vertical_flag=NULL, RocalIntParam depth_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 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 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 rocalBrightnessFixed(RocalContext context, RocalTensor input, float alpha, float beta, bool is_output, int conditional_execution=1, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts brightness of the image with fixed parameters.
RocalTensor ROCAL_API_CALL rocalGaussianNoise(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam mean=NULL, RocalFloatParam stddev=NULL, int seed=0, RocalIntParam conditional_execution=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian noise effect 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 rocalGaussianNoiseFixed(RocalContext context, RocalTensor input, bool is_output, float mean=0.0, float stddev=1.0, int seed=0, int conditional_execution=1, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Applies gaussian noise on images 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 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 rocalBrightness(RocalContext context, RocalTensor input, bool is_output, RocalFloatParam alpha=NULL, RocalFloatParam beta=NULL, RocalIntParam conditional_execution=NULL, RocalTensorLayout output_layout=ROCAL_NONE, RocalTensorOutputType output_datatype=ROCAL_UINT8)
Adjusts brightness of the image.
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 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:471
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:326
RocalTensorLayout
rocAL Tensor Layout enum
Definition: rocal_api_types.h:211
RocalMelScaleFormula
rocAL MelScale formula enum
Definition: rocal_api_types.h:441
RocalTensorOutputType
rocAL Tensor Output Type enum
Definition: rocal_api_types.h:249
void * RocalIntParam
typedef void* rocAL Int Param
Definition: rocal_api_types.h:61
RocalBitwiseOp
rocAL Bitwise Operation enum
Definition: rocal_api_types.h:546
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:56
void * RocalContext
typedef void* rocAL Context
Definition: rocal_api_types.h:66
RocalResizeInterpolationType
rocAL Resize Interpolation Type enum
Definition: rocal_api_types.h:348
@ ROCAL_REPLICATE
AMD ROCAL_REPLICATE.
Definition: rocal_api_types.h:474
@ 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:243
@ ROCAL_NFT
AMD ROCAL_NFT Spectrogram Layout FT.
Definition: rocal_api_types.h:230
@ ROCAL_FP32
AMD ROCAL_FP32.
Definition: rocal_api_types.h:252
@ ROCAL_UINT8
AMD ROCAL_UINT8.
Definition: rocal_api_types.h:258
@ 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 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 - Tensor.
#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