MLECO-2458 and MLECO-2476 [Fix] VWW IFM quant step
* Changed image->cc conversion to be similar with preprocessing
of img_class and vww models: images are scaled maintaing the
aspect ration and then the centre crop of the correct size
is taken.
* VWW applies input quantization info to the int8 image
(prior converted to [0,1] float range).
* Changed adult_blur to a image without person.
* Fix menu print when selecting a specific ifm to run
(Select message was displayed after typing something)
Change-Id: Ie6cde7ab4835ea842667b87397458a5d32131df3
diff --git a/tests/utils/ImageUtils.cc b/tests/utils/ImageUtils.cc
index f77ce1e..506040f 100644
--- a/tests/utils/ImageUtils.cc
+++ b/tests/utils/ImageUtils.cc
@@ -18,12 +18,12 @@
void convertImgIoInt8(void * data, const size_t sz)
{
- uint8_t * tmp_req_data = (uint8_t *)data;
- int8_t * tmp_signed_req_data = (int8_t *) data;
+ uint8_t * tmp_req_data = static_cast<uint8_t *>(data);
+ int8_t * tmp_signed_req_data = static_cast<int8_t *>(data);
for (size_t i = 0; i < sz; ++i) {
- tmp_signed_req_data[i] = (int8_t)(
- (int32_t)(tmp_req_data[i]) - 128);
+ tmp_signed_req_data[i] = static_cast<int8_t>(
+ static_cast<int32_t>(tmp_req_data[i]) - 128);
}
}