delete comment out lines.
#include "blueoil.hpp"
#include "blueoil_image.hpp"
#include "blueoil_opencv.hpp"
-// #include "blueoil_data_processor.hpp"
float test_input[3][8][8] =
{ { // Red
@@ -61,13 +60,10 @@ float test_expect[3][4][4] =
int test_resize() {
// CWH (3-channel, height, width)
int width = 4, height = 4;
- // const std::pair<int, int>& image_size = std::make_pair(width, height);
blueoil::Tensor input({3, 8, 8}, (float *)test_input);
blueoil::Tensor expect({3, 4, 4}, (float *)test_expect);
input = blueoil::image::Tensor_CHW_to_HWC(input);
expect = blueoil::image::Tensor_CHW_to_HWC(expect);
- // blueoil::Tensor output = blueoil::data_processor::Resize(input,
- // image_size);
blueoil::Tensor output = blueoil::image::Resize(input,
width, height,
blueoil::image::RESIZE_FILTER_NEAREST_NEIGHBOR);
@@ -97,8 +93,6 @@ int command_resize(char **argv) {
return EXIT_FAILURE;
}
blueoil::Tensor input = blueoil::opencv::Tensor_fromCVMat(img);
- // const std::pair<int, int>& size = std::make_pair(width, height);
- // blueoil::Tensor output = blueoil::data_processor::Resize(input, size);
blueoil::Tensor output = blueoil::image::Resize(input, width, height,
blueoil::image::RESIZE_FILTER_NEAREST_NEIGHBOR);
cv::Mat img2 = blueoil::opencv::Tensor_toCVMat(output);
