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

[DIP][OSPP] Add PNG image encoding and decoding. #207

Merged
merged 18 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/DIPDialect/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
if(BUDDY_ENABLE_OPENCV)
find_package(OpenCV REQUIRED CONFIG)
find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${JPEG_INCLUDE_DIRS})
include_directories(${PNG_INCLUDE_DIRS})
endif()

add_executable(correlation2D correlation2D.cpp)
Expand All @@ -10,10 +14,10 @@ add_executable(correlationFFT2D correlationFFT2D.cpp)
target_link_libraries(correlationFFT2D ${OpenCV_LIBS} BuddyLibDIP)

add_executable(rotation2D rotation2D.cpp)
target_link_libraries(rotation2D ${OpenCV_LIBS} BuddyLibDIP)
target_link_libraries(rotation2D ${OpenCV_LIBS} ${JPEG_LIBRARY} ${PNG_LIBRARY} BuddyLibDIP)

add_executable(resize2D resize2D.cpp)
target_link_libraries(resize2D ${OpenCV_LIBS} BuddyLibDIP)
target_link_libraries(resize2D ${OpenCV_LIBS} ${JPEG_LIBRARY} ${PNG_LIBRARY} BuddyLibDIP)

add_executable(morph2D morph2D.cpp)
target_link_libraries(morph2D ${OpenCV_LIBS} BuddyLibDIP)
Expand Down
Binary file added examples/images/YuTu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading