routine push
This commit is contained in:
parent
81e9985e58
commit
dd25645335
File diff suppressed because one or more lines are too long
|
@ -171,15 +171,15 @@ int main(int argc, char **argv)
|
|||
struct image_t *details_image;
|
||||
struct image_t *sharpened_image;
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
for (int i = 0; i < 500; i++) {
|
||||
smoothened_image = S1_smoothen(input_image);
|
||||
details_image = S2_find_details(input_image, smoothened_image);
|
||||
sharpened_image = S3_sharpen(input_image, details_image);
|
||||
|
||||
// Free memory to avoid memory leaks
|
||||
free_image(smoothened_image);
|
||||
free_image(details_image);
|
||||
free_image(sharpened_image);
|
||||
// free_image(smoothened_image);
|
||||
// free_image(details_image);
|
||||
// free_image(sharpened_image);
|
||||
}
|
||||
|
||||
write_ppm_file(argv[2], sharpened_image);
|
||||
|
|
Loading…
Reference in New Issue