Skip to content

Commit 4f2ba3f

Browse files
committed
Legacy modules port from main 4.x to 5.x contrib
1 parent 009ff0a commit 4f2ba3f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

modules/gapi/include/opencv2/gapi/infer/ov.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ template<typename Net> struct Params {
214214
215215
This function is used to ensure that all tensors in the model have names.
216216
It goes through all input and output nodes of the model and sets the names
217-
if they are not set. This is neccessary for models with nameless tensors.
217+
if they are not set. This is necessary for models with nameless tensors.
218218
219219
If a tensor does not have a name, it will be assigned a default name
220220
based on the producer node's friendly name. If the producer node has multiple

modules/gapi/src/3rdparty/vasot/src/components/ot/mtt/rgb_histogram.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace ot {
1111

1212
RgbHistogram::RgbHistogram(int32_t rgb_bin_size)
1313
: rgb_bin_size_(rgb_bin_size), rgb_num_bins_(256 / rgb_bin_size),
14-
rgb_hist_size_(static_cast<int32_t>(pow(rgb_num_bins_, 3))) {
14+
rgb_hist_size_(static_cast<int32_t>(std::pow(rgb_num_bins_, 3))) {
1515
}
1616

1717
RgbHistogram::~RgbHistogram(void) {

modules/gapi/src/streaming/onevpl/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,10 @@ std::string ext_mem_frame_type_to_cstr(int type) {
401401
std::stringstream ss;
402402
APPEND_STRINGIFY_MASK_N_ERASE(type, "|", MFX_MEMTYPE_DXVA2_DECODER_TARGET);
403403
APPEND_STRINGIFY_MASK_N_ERASE(type, "|", MFX_MEMTYPE_DXVA2_PROCESSOR_TARGET);
404-
// NB: according to VPL source the commented MFX_* constane below are belong to the
404+
// NB: according to VPL source the commented MFX_* constant below are belong to the
405405
// same actual integral value as condition abobe. So it is impossible
406406
// to distinct them in condition branch. Just put this comment and possible
407-
// constans here...
407+
// constants here...
408408
//APPEND_STRINGIFY_MASK_N_ERASE(type, "|", MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET);
409409
//APPEND_STRINGIFY_MASK_N_ERASE(type, "|", MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET);
410410
APPEND_STRINGIFY_MASK_N_ERASE(type, "|", MFX_MEMTYPE_SYSTEM_MEMORY);

modules/gapi/test/infer/gapi_infer_ie_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3174,7 +3174,7 @@ TEST_F(AgeGenderInferTest, ChangeOutputPrecision) {
31743174
validate();
31753175
}
31763176

3177-
TEST_F(AgeGenderInferTest, ChangeSpecificOutputPrecison) {
3177+
TEST_F(AgeGenderInferTest, ChangeSpecificOutputPrecision) {
31783178
auto pp = cv::gapi::ie::Params<AgeGender> {
31793179
m_params.model_path, m_params.weights_path, m_params.device_id
31803180
}.cfgOutputLayers({ "age_conv3", "prob" })

modules/ml/src/ann_mlp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class ANN_MLPImpl CV_FINAL : public ANN_MLP
277277
{
278278
int n1 = layer_sizes[i-1];
279279
int n2 = layer_sizes[i];
280-
double val = 0, G = n2 > 2 ? 0.7*pow((double)n1,1./(n2-1)) : 1.;
280+
double val = 0, G = n2 > 2 ? 0.7*std::pow(n1,1./(n2-1)) : 1.;
281281
double* w = weights[i].ptr<double>();
282282

283283
// initialize weights using Nguyen-Widrow algorithm

0 commit comments

Comments
 (0)