Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize grad_to_dp from 4s to 1s #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sirynka
Copy link

@sirynka sirynka commented Apr 13, 2024

> ./run.sh
++ cd ./seam-carving-tsoding
++ ./nob ./images/Broadway_tower_edit.jpg ./images/Broadway_tower_squashed.jpg
[INFO] directory `./build/` already exists
[INFO] ./build/stb_image.o is up to date
[INFO] ./build/stb_image_write.o is up to date
[INFO] CMD: cc -Wall -Wextra -ggdb -O3 -o ./build/main main.c ./build/stb_image.o ./build/stb_image_write.o -lm
[INFO] CMD: ./build/main ./images/Broadway_tower_edit.jpg ./images/Broadway_tower_squashed.jpg
OK: generated ./images/Broadway_tower_squashed.jpg
[INFO] Resizing took 4.092352secs
++ echo

++ cd ./seam-carving-dp
++ ./nob ./images/Broadway_tower_edit.jpg ./images/Broadway_tower_squashed.jpg
[INFO] directory `./build/` already exists
[INFO] ./build/stb_image.o is up to date
[INFO] ./build/stb_image_write.o is up to date
[INFO] CMD: cc -Wall -Wextra -ggdb -O3 -o ./build/main main.c ./build/stb_image.o ./build/stb_image_write.o -lm
[INFO] CMD: ./build/main ./images/Broadway_tower_edit.jpg ./images/Broadway_tower_squashed.jpg
OK: generated ./images/Broadway_tower_squashed.jpg
[INFO] Resizing took 1.071051secs
++ echo

++ cmp -s \
    ./seam-carving-tsoding/images/Broadway_tower_squashed.jpg \
    ./seam-carving-dp/images/Broadway_tower_squashed.jpg
++ echo -e '\033[32mImages are the same\033[0m'
Images are the same

@sirynka sirynka changed the title Optimize grad_to_dp Optimize grad_to_dp from 4s to 1s Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant