Skip to content

Commit

Permalink
0.20191003: update for new version libiio
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Oct 3, 2019
1 parent 2f2d58f commit ed0eccc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 80 deletions.
72 changes: 0 additions & 72 deletions denoise/bm3d/test_dpkg_NEEDED_log.sh

This file was deleted.

2 changes: 1 addition & 1 deletion denoise/bm3d/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int save_image(
for (unsigned k = 0; k < width * height * chnls; k++)
tmp[k] = img[k]; //(img[k] > 255.0f ? 255.0f : (img[k] < 0.0f ? 0.0f : img[k]));

iio_save_image_float_split(name, tmp, width, height, chnls);
iio_write_image_float_split(name, tmp, width, height, chnls);


//! Free Memory
Expand Down
4 changes: 2 additions & 2 deletions denoise/cartoontexture/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ int main(int argc, char **argv) {
}

// save cartoon and texture images
iio_save_image_float_split(argv[3], cartoon, Width, Height, nb_channels);
iio_save_image_float_split(argv[4], texture, Width, Height, nb_channels);
iio_write_image_float_split(argv[3], cartoon, Width, Height, nb_channels);
iio_write_image_float_split(argv[4], texture, Width, Height, nb_channels);

delete[] cartoon1;
delete[] cartoon2;
Expand Down
2 changes: 1 addition & 1 deletion denoise/da3d/DemoUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Image read_image(const string &filename) {
}

void save_image(const Image &image, const string &filename) {
iio_save_image_float_vec(const_cast<char *>(filename.c_str()),
iio_write_image_float_vec(const_cast<char *>(filename.c_str()),
const_cast<float *>(image.data()),
image.columns(), image.rows(), image.channels());
}
Expand Down
2 changes: 1 addition & 1 deletion denoise/dctdenoising/demoutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Image read_image(const string &filename) {
}

void save_image(const Image &image, const string &filename) {
iio_save_image_float_split(const_cast<char *>(filename.c_str()),
iio_write_image_float_split(const_cast<char *>(filename.c_str()),
const_cast<float *>(image.data()),
image.columns(), image.rows(), image.channels());
}
Expand Down
2 changes: 1 addition & 1 deletion denoise/ksvd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char **argv) {
chnls,
useAcceleration);

iio_save_image_float_split(argv[3], img_denoised, width, height, chnls);
iio_write_image_float_split(argv[3], img_denoised, width, height, chnls);

//! Free Memory
delete[] img_denoised;
Expand Down
2 changes: 1 addition & 1 deletion denoise/nl-bayes/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Image read_image(const string &filename) {
}

void save_image(const Image &image, const string &filename) {
iio_save_image_float_split(const_cast<char *>(filename.c_str()),
iio_write_image_float_split(const_cast<char *>(filename.c_str()),
const_cast<float *>(image.data()),
image.columns(), image.rows(), image.channels());
}
Expand Down
2 changes: 1 addition & 1 deletion denoise/nlmeans/nlmeans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int main(int argc, char **argv) {
delete[] fpI;
delete[] fpO;
// save denoised images
iio_save_image_float_split(argv[3], denoised, d_w, d_h, d_c);
iio_write_image_float_split(argv[3], denoised, d_w, d_h, d_c);
delete[] denoised;

return EXIT_SUCCESS;
Expand Down

0 comments on commit ed0eccc

Please sign in to comment.