vector<model_layer_info>& input_layer_info = GetBackboneInputLayerInfo();
// TODO. consider mutiple tensor info.
- unsigned int re_width = input_layer_info[0].tensor_info.shape[0];
- unsigned int re_height = input_layer_info[0].tensor_info.shape[1];
+ size_t re_width = input_layer_info[0].tensor_info.shape[0];
+ size_t re_height = input_layer_info[0].tensor_info.shape[1];
- LOGD("Convert mv source(WxH) : %d x %d => %d x %d", width, height, re_width, re_height);
+ LOGD("Convert mv source(WxH) : %d x %d => %zu x %zu", width, height, re_width, re_height);
FeatureVectorManager::GetVecFromRGB(buffer, out_vec, width, height, re_width, re_height);
data_set->LoadDataSet(fvm->GetFileName());
- // Remove existing data file.
- //remove(fvm->GetFileName().c_str());
-
vector<vector<float>> feature_vectors = data_set->GetData();
vector<unsigned int> label_idx_vectors = data_set->GetLabelIdx();
const std::string& GetFileName();
- static void GetVecFromImg(const std::string image_file, std::vector<float>& vec, int width, int height);
- static void GetVecFromRGB(unsigned char *in_data, std::vector<float>& vec, int width, int height,
- int re_width, int re_height);
+ static void GetVecFromImg(const std::string image_file, std::vector<float>& vec,
+ unsigned int width, unsigned int height);
+ static void GetVecFromRGB(unsigned char *in_data, std::vector<float>& vec,
+ unsigned int width, unsigned int height,
+ size_t re_width, size_t re_height);
static void GetVecFromXRGB(unsigned char *in_data, std::vector<float>& vec,
- int in_width, int in_height, int re_width, int re_height);
+ unsigned int in_width, unsigned int in_height,
+ unsigned int re_width, unsigned int re_height);
virtual void WriteHeader(size_t feature_size, size_t one_hot_table_size, unsigned int data_set_cnt) = 0;
virtual void ReadHeader(FeaVecHeader& header) = 0;
return _feature_vector_file;
}
-void FeatureVectorManager::GetVecFromImg(const string image_file, vector<float>& vec, int width, int height)
+void FeatureVectorManager::GetVecFromImg(const string image_file, vector<float>& vec,
+ unsigned int width, unsigned int height)
{
cv::Mat src, dst;
}
void FeatureVectorManager::GetVecFromRGB(unsigned char *in_data, vector<float>& vec,
- int width, int height, int re_width, int re_height)
+ unsigned int width, unsigned int height,
+ size_t re_width, size_t re_height)
{
cv::Mat cvSrc = cv::Mat(cv::Size(width, height), CV_MAKETYPE(CV_8U, 3), in_data).clone();
}
void FeatureVectorManager::GetVecFromXRGB(unsigned char *in_data, vector<float>& vec,
- int in_width, int in_height, int re_width, int re_height)
+ unsigned int in_width, unsigned int in_height, unsigned int re_width,
+ unsigned int re_height)
{
cv::Mat argb(cv::Size(in_width, in_height), CV_8UC4, in_data);
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.21.2
+Version: 0.21.3
Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause