Skip to content

Instantly share code, notes, and snippets.

@nooperpudd
Created June 6, 2018 07:11
Show Gist options
  • Save nooperpudd/c73ee878d0ac55b5ac24cda739457f08 to your computer and use it in GitHub Desktop.
Save nooperpudd/c73ee878d0ac55b5ac24cda739457f08 to your computer and use it in GitHub Desktop.
for (let i = 0; i < 10; i++) {
let read_img_path;
if (i === 0) {
read_img_path = "./blue_a.png"
} else {
read_img_path = "./blue_" + (i - 1) + ".png";
}
let img_write_path = "./blue_" + i + ".png";
let img_i = cv.imread(read_img_path);
result_img = convert_img(img_i);
cv.imwrite(img_write_path, result_img);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment