/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 
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 
959  bool is_output,
960  RocalFloatParam brightness = NULL,
961  RocalFloatParam contrast = NULL,
962  RocalFloatParam hue = NULL,
963  RocalFloatParam saturation = NULL,
964  RocalTensorLayout output_layout = ROCAL_NONE,
965  RocalTensorOutputType output_datatype = ROCAL_UINT8);
966 
981  float brightness, float contrast, float hue, float saturation,
982  bool is_output,
983  RocalTensorLayout output_layout = ROCAL_NONE,
984  RocalTensorOutputType output_datatype = ROCAL_UINT8);
985 
997  std::vector<unsigned int>& permutation,
998  bool is_output,
999  RocalTensorLayout output_layout = ROCAL_NONE,
1000  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1001 
1014  bool is_output,
1015  RocalFloatParam intensity_value = NULL,
1016  RocalFloatParam gray_value = NULL,
1017  RocalTensorLayout output_layout = ROCAL_NONE,
1018  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1019 
1032  float fog_value, float gray_value, bool is_output,
1033  RocalTensorLayout output_layout = ROCAL_NONE,
1034  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1035 
1048  std::vector<CameraMatrix> camera_matrix, std::vector<DistortionCoeffs> distortion_coeffs,
1049  bool is_output, RocalTensorLayout output_layout = ROCAL_NONE,
1050  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1051 
1063  bool is_output, float pixelate_percentage = 50.0,
1064  RocalTensorLayout output_layout = ROCAL_NONE,
1065  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1066 
1078  bool is_output,
1079  RocalFloatParam exposure_factor = NULL,
1080  RocalTensorLayout output_layout = ROCAL_NONE,
1081  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1082 
1094  float exposure_factor, bool is_output,
1095  RocalTensorLayout output_layout = ROCAL_NONE,
1096  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1097 
1109  bool is_output,
1110  RocalFloatParam hue = NULL,
1111  RocalTensorLayout output_layout = ROCAL_NONE,
1112  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1113 
1125  float hue,
1126  bool is_output,
1127  RocalTensorLayout output_layout = ROCAL_NONE,
1128  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1129 
1141  bool is_output,
1142  RocalFloatParam saturation = NULL,
1143  RocalTensorLayout output_layout = ROCAL_NONE,
1144  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1145 
1157  float saturation, bool is_output,
1158  RocalTensorLayout output_layout = ROCAL_NONE,
1159  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1160 
1168 extern "C" RocalTensor ROCAL_API_CALL rocalCopy(RocalContext context, RocalTensor input, bool is_output);
1169 
1177 extern "C" RocalTensor ROCAL_API_CALL rocalNop(RocalContext context, RocalTensor input, bool is_output);
1178 
1193  bool is_output,
1194  RocalFloatParam alpha = NULL,
1195  RocalFloatParam beta = NULL,
1196  RocalFloatParam hue = NULL,
1197  RocalFloatParam sat = NULL,
1198  RocalTensorLayout output_layout = ROCAL_NONE,
1199  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1200 
1215  float alpha,
1216  float beta,
1217  float hue,
1218  float sat,
1219  bool is_output,
1220  RocalTensorLayout output_layout = ROCAL_NONE,
1221  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1222 
1240  unsigned crop_height,
1241  unsigned crop_width,
1242  float start_x,
1243  float start_y,
1244  std::vector<float> &mean,
1245  std::vector<float> &std_dev,
1246  bool is_output,
1247  RocalIntParam mirror = NULL,
1248  RocalTensorLayout output_layout = ROCAL_NONE,
1249  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1250 
1266 extern "C" RocalTensor ROCAL_API_CALL rocalCrop(RocalContext context, RocalTensor input, bool is_output,
1267  RocalFloatParam crop_width = NULL,
1268  RocalFloatParam crop_height = NULL,
1269  RocalFloatParam crop_depth = NULL,
1270  RocalFloatParam crop_pox_x = NULL,
1271  RocalFloatParam crop_pos_y = NULL,
1272  RocalFloatParam crop_pos_z = NULL,
1273  RocalTensorLayout output_layout = ROCAL_NONE,
1274  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1275 
1292  unsigned crop_width,
1293  unsigned crop_height,
1294  unsigned crop_depth,
1295  bool is_output,
1296  float crop_pox_x,
1297  float crop_pos_y,
1298  float crop_pos_z,
1299  RocalTensorLayout output_layout = ROCAL_NONE,
1300  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1301 
1315  unsigned crop_width,
1316  unsigned crop_height,
1317  unsigned crop_depth,
1318  bool is_output,
1319  RocalTensorLayout output_layout = ROCAL_NONE,
1320  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1321 
1337  unsigned dest_width, unsigned dest_height,
1338  bool is_output,
1339  unsigned crop_h,
1340  unsigned crop_w,
1341  RocalIntParam mirror,
1342  RocalTensorLayout output_layout = ROCAL_NONE,
1343  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1344 
1360  unsigned dest_width, unsigned dest_height,
1361  bool is_output, RocalFloatParam crop_height = NULL,
1362  RocalFloatParam crop_width = NULL, RocalIntParam mirror = NULL,
1363  RocalTensorLayout output_layout = ROCAL_NONE,
1364  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1365 
1381  bool is_output,
1382  RocalFloatParam crop_area_factor = NULL,
1383  RocalFloatParam crop_aspect_ratio = NULL,
1384  RocalFloatParam crop_pos_x = NULL,
1385  RocalFloatParam crop_pos_y = NULL,
1386  int num_of_attempts = 20,
1387  RocalTensorLayout output_layout = ROCAL_NONE,
1388  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1389 
1406  bool is_output,
1407  RocalFloatParam threshold = NULL,
1408  RocalFloatParam crop_area_factor = NULL,
1409  RocalFloatParam crop_aspect_ratio = NULL,
1410  RocalFloatParam crop_pos_x = NULL,
1411  RocalFloatParam crop_pos_y = NULL,
1412  int num_of_attempts = 20,
1413  RocalTensorLayout output_layout = ROCAL_NONE,
1414  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1415 
1427  RocalTensor input,
1428  bool is_output,
1429  RocalFloatParam preemph_coeff = NULL,
1431  RocalTensorOutputType output_datatype = ROCAL_FP32);
1432 
1450  RocalTensor input,
1451  bool is_output,
1452  std::vector<float> &window_fn,
1453  bool center_windows,
1454  bool reflect_padding,
1455  int power,
1456  int nfft,
1457  int window_length = 512,
1458  int window_step = 256,
1459  RocalTensorLayout output_layout = ROCAL_NFT,
1460  RocalTensorOutputType output_datatype = ROCAL_FP32);
1461 
1474  RocalTensor p_input,
1475  bool is_output,
1476  float cutoff_db,
1477  float multiplier,
1478  float reference_magnitude,
1479  RocalTensorOutputType rocal_tensor_output_type);
1480 
1493  RocalTensor p_input,
1494  RocalTensor p_output_resample_rate,
1495  bool is_output,
1496  float sample_hint,
1497  float quality = 50.0,
1498  RocalTensorOutputType output_datatype = ROCAL_FP32);
1499 
1509  RocalTensor p_input,
1510  bool is_output,
1511  std::vector<float> &range);
1512 
1522  RocalTensor p_input,
1523  bool is_output,
1524  float mean = 0.0,
1525  float stddev = 0.0);
1526 
1536  RocalTensor p_input,
1537  bool is_output,
1538  float scalar = 0.0,
1539  RocalTensorOutputType output_datatype = ROCAL_FP32);
1540 
1550  RocalTensor p_input1,
1551  RocalTensor p_input2,
1552  bool is_output,
1553  RocalTensorOutputType output_datatype = ROCAL_FP32);
1554 
1565  bool is_output,
1566  RocalTensorLayout output_layout = ROCAL_NONE,
1567  RocalTensorOutputType output_datatype = ROCAL_FP32);
1568 
1579  bool is_output,
1580  RocalTensorLayout output_layout = ROCAL_NONE,
1581  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1582 
1593  bool is_output,
1594  RocalTensorLayout output_layout = ROCAL_NONE,
1595  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1596 
1607  bool is_output,
1608  RocalTensorLayout output_layout = ROCAL_NONE,
1609  RocalTensorOutputType output_datatype = ROCAL_FP32);
1610 
1622  RocalTensor mean_tensor,
1623  bool is_output,
1624  RocalTensorLayout output_layout = ROCAL_NONE,
1625  RocalTensorOutputType output_datatype = ROCAL_FP32);
1626 
1639  RocalTensor input,
1640  bool is_output,
1641  float cutoff_db,
1642  float reference_power,
1643  int reset_interval,
1644  int window_length);
1645 
1659  RocalTensor input,
1660  bool is_output,
1661  RocalTensor anchor,
1662  RocalTensor shape,
1663  std::vector<float> fill_values,
1665  RocalTensorOutputType output_datatype = ROCAL_FP32);
1666 
1680  RocalTensor input,
1681  bool is_output,
1682  RocalTensor anchor,
1683  std::vector<int> shape,
1684  std::vector<float> fill_values,
1686  RocalTensorOutputType output_datatype = ROCAL_FP32);
1687 
1702  std::vector<unsigned> &axes,
1703  std::vector<float> &mean,
1704  std::vector<float> &std_dev,
1705  bool is_output,
1706  float scale = 1.0, float shift = 0.0,
1707  RocalTensorOutputType output_datatype = ROCAL_FP32);
1708 
1725  RocalTensor p_input,
1726  bool is_output,
1727  float freq_high,
1728  float freq_low,
1729  RocalMelScaleFormula mel_formula,
1730  int nfilter,
1731  bool normalize,
1732  float sample_rate,
1733  RocalTensorOutputType output_datatype);
1734 
1745 extern "C" RocalTensor ROCAL_API_CALL rocalTranspose(RocalContext context, RocalTensor input, std::vector<unsigned> perm, bool is_output,
1746  RocalTensorLayout output_layout = ROCAL_NONE);
1747 
1755  RocalTensor p_input,
1756  bool is_output);
1757 
1769 extern "C" RocalTensor ROCAL_API_CALL rocalPythonFunction(RocalContext context, RocalTensor input, bool is_output, unsigned long long function_id,
1770  std::vector<size_t> output_dims = {}, RocalTensorLayout output_layout = ROCAL_NONE, RocalTensorOutputType output_datatype = ROCAL_FP32);
1771 
1784  bool is_output,
1785  RocalFloatParam alpha,
1786  std::vector<float>& rgb,
1787  RocalTensorLayout output_layout = ROCAL_NONE,
1788  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1789 
1802  float alpha,
1803  std::vector<float>& rgb,
1804  bool is_output,
1805  RocalTensorLayout output_layout = ROCAL_NONE,
1806  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1807 
1823  bool is_output,
1824  unsigned tile_width,
1825  float grid_ratio,
1826  float grid_angle,
1827  unsigned translate_x,
1828  unsigned translate_y,
1829  RocalTensorLayout output_layout = ROCAL_NONE,
1830  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1831 
1844  bool is_output,
1845  unsigned kernel_size = 3,
1847  RocalTensorLayout output_layout = ROCAL_NONE,
1848  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1849 
1863  bool is_output,
1864  RocalFloatParam stddev = NULL,
1865  unsigned kernel_size = 3,
1867  RocalTensorLayout output_layout = ROCAL_NONE,
1868  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1869 
1883  float stddev,
1884  unsigned kernel_size,
1885  RocalImageBorderType border_type,
1886  bool is_output,
1887  RocalTensorLayout output_layout = ROCAL_NONE,
1888  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1889 
1902  bool is_output,
1903  RocalFloatParam stddev = NULL,
1904  RocalTensorLayout output_layout = ROCAL_NONE,
1905  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1906 
1919  float stddev, bool is_output,
1920  RocalTensorLayout output_layout = ROCAL_NONE,
1921  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1922 
1923 
1938  std::vector<float> &min,
1939  std::vector<float> &max,
1940  bool is_output,
1941  RocalTensorLayout output_layout = ROCAL_NONE,
1942  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1943 
1955  bool is_output,
1956  unsigned kernel_size = 3,
1957  RocalTensorLayout output_layout = ROCAL_NONE,
1958  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1959 
1971  bool is_output,
1972  unsigned kernel_size = 3,
1973  RocalTensorLayout output_layout = ROCAL_NONE,
1974  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1975 
1987  bool is_output,
1988  RocalTensorLayout output_layout = ROCAL_NONE,
1989  RocalTensorOutputType output_datatype = ROCAL_UINT8);
1990 
2002  bool is_output,
2003  RocalTensorLayout output_layout = ROCAL_NONE,
2004  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2005 
2020 extern "C" RocalTensor ROCAL_API_CALL rocalWarpPerspective(RocalContext context, RocalTensor input, bool is_output,
2021  unsigned dest_height, unsigned dest_width,
2022  std::vector<float> &perspective,
2024  RocalTensorLayout output_layout = ROCAL_NONE,
2025  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2026 
2040  bool is_output,
2041  std::vector<float> &anchor,
2042  std::vector<float> &shape,
2043  std::vector<unsigned> &num_boxes,
2044  std::vector<float> &fill_value,
2045  RocalTensorLayout output_layout = ROCAL_NONE,
2046  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2047 
2060  RocalTensor input,
2061  bool is_output,
2062  std::vector<unsigned> &permutation,
2063  std::vector<int> &crop_rois,
2064  RocalTensorLayout output_layout = ROCAL_NONE,
2065  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2066 
2079  RocalTensor input1,
2080  RocalTensor input2,
2081  bool is_output,
2082  RocalBitwiseOp op,
2083  RocalTensorLayout output_layout = ROCAL_NONE,
2084  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2085 
2100 extern "C" RocalTensor ROCAL_API_CALL rocalRemap(RocalContext context, RocalTensor input, bool is_output,
2101  unsigned dest_height, unsigned dest_width,
2102  std::vector<float> &row_remap, std::vector<float> &col_remap,
2104  RocalTensorLayout output_layout = ROCAL_NONE,
2105  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2106 
2120  RocalTensor input1, RocalTensor input2,
2121  bool is_output,
2122  std::vector<int> &crop_roi, std::vector<int> &patch_roi,
2123  RocalTensorLayout output_layout = ROCAL_NONE,
2124  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2125 
2133  RocalTensor p_input,
2134  bool is_output);
2135 
2153  bool is_output,
2154  RocalFloatParam amplitude_x = NULL,
2155  RocalFloatParam amplitude_y = NULL,
2156  RocalFloatParam frequency_x = NULL,
2157  RocalFloatParam frequency_y = NULL,
2158  RocalFloatParam phase_x = NULL,
2159  RocalFloatParam phase_y = NULL,
2160  RocalTensorLayout output_layout = ROCAL_NONE,
2161  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2162 
2180  float amplitude_x, float amplitude_y,
2181  float frequency_x, float frequency_y,
2182  float phase_x, float phase_y,
2183  bool is_output,
2184  RocalTensorLayout output_layout = ROCAL_NONE,
2185  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2186 
2198  bool is_output, int subpixel_layout = 0,
2199  RocalTensorOutputType output_datatype = ROCAL_UINT8);
2200 
2201 #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:469
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:324
RocalTensorLayout
rocAL Tensor Layout enum
Definition: rocal_api_types.h:209
RocalMelScaleFormula
rocAL MelScale formula enum
Definition: rocal_api_types.h:439
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:544
RocalOutOfBoundsPolicy
rocAL Out Of Bounds Policy Type enum
Definition: rocal_api_types.h:424
RocalAudioBorderType
rocAL Audio Border Type enum
Definition: rocal_api_types.h:409
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:346
@ ROCAL_REPLICATE
AMD ROCAL_REPLICATE.
Definition: rocal_api_types.h:472
@ 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:330
@ 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:433
@ ROCAL_CLAMP
AMD ROCAL_CLAMP.
Definition: rocal_api_types.h:415
@ ROCAL_LINEAR_INTERPOLATION
AMD ROCAL_LINEAR_INTERPOLATION.
Definition: rocal_api_types.h:352
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