routine push

This commit is contained in:
ItsMAX0112 2024-11-04 02:43:55 +05:30
parent 81e9985e58
commit dd25645335
3 changed files with 1390 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -171,15 +171,15 @@ int main(int argc, char **argv)
struct image_t *details_image; struct image_t *details_image;
struct image_t *sharpened_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); smoothened_image = S1_smoothen(input_image);
details_image = S2_find_details(input_image, smoothened_image); details_image = S2_find_details(input_image, smoothened_image);
sharpened_image = S3_sharpen(input_image, details_image); sharpened_image = S3_sharpen(input_image, details_image);
// Free memory to avoid memory leaks // Free memory to avoid memory leaks
free_image(smoothened_image); // free_image(smoothened_image);
free_image(details_image); // free_image(details_image);
free_image(sharpened_image); // free_image(sharpened_image);
} }
write_ppm_file(argv[2], sharpened_image); write_ppm_file(argv[2], sharpened_image);