-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
add imread #24415
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
Merged
Merged
add imread #24415
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
797e2ea
add imread
thewoz cd5a604
update doc
thewoz a0139d6
up date and C++ test
thewoz 6624437
Update test_png.cpp
thewoz 4d17d23
Update test_png.cpp
thewoz bfc98f4
Update test_png.cpp
thewoz 0a911a2
still working on
thewoz f911616
update
thewoz c2e832b
Update test_imread.py
thewoz ef5e4f0
Update test_imread.py
thewoz 5645bf5
update fix last issue
thewoz f68e96e
update
thewoz e46b6e0
fix some issue
thewoz 7dcab41
update py test
thewoz 5c8b2d1
Update test_imread.py
thewoz b2a179a
fix docs build and test
thewoz 6941aa1
Update test_imread.py
thewoz 38657fe
Update test_imread.py
thewoz 52ff898
Update test_imread.py
thewoz 3ce566f
Resolve comments and remove extra flags
dkurt cf00b3d
Use cv.error
dkurt d618658
Correct checks
dkurt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #!/usr/bin/env python | ||
|
|
||
| ''' | ||
| Test for imread | ||
| ''' | ||
|
|
||
| # Python 2/3 compatibility | ||
| from __future__ import print_function | ||
|
|
||
| import cv2 as cv | ||
| import numpy as np | ||
| import sys | ||
|
|
||
| from tests_common import NewOpenCVTests | ||
|
|
||
| class imread_test(NewOpenCVTests): | ||
| def test_imread_to_buffer(self): | ||
| path = self.extraTestDataPath + '/cv/shared/lena.png' | ||
| ref = cv.imread(path) | ||
|
|
||
| img = np.zeros_like(ref) | ||
| cv.imread(path, img) | ||
| self.assertEqual(cv.norm(ref, img, cv.NORM_INF), 0.0) | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| NewOpenCVTests.bootstrap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.