Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
322f0e61
Commit
322f0e61
authored
Jan 15, 1997
by
Roger E. Masse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Opps. Added tests for the last two methods that were missing from
the test program: 'grey2rgb' and 'rgb2grey'
parent
e13142fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Lib/test/test_imageop.py
Lib/test/test_imageop.py
+11
-1
No files found.
Lib/test/test_imageop.py
View file @
322f0e61
...
...
@@ -36,7 +36,7 @@ def main(use_rgbimg=1):
print
'tovideo'
videoimage
=
imageop
.
tovideo
(
image
,
4
,
width
,
height
)
# Convert an rgb image to an 8 bit rgb
(greyscale)
# Convert an rgb image to an 8 bit rgb
if
verbose
:
print
'rgb2rgb8'
greyimage
=
imageop
.
rgb2rgb8
(
image
,
width
,
height
)
...
...
@@ -46,6 +46,16 @@ def main(use_rgbimg=1):
print
'rgb82rgb'
image
=
imageop
.
rgb82rgb
(
greyimage
,
width
,
height
)
# Convert an rgb image to an 8 bit greyscale image
if
verbose
:
print
'rgb2grey'
greyimage
=
imageop
.
rgb2grey
(
image
,
width
,
height
)
# Convert an 8 bit greyscale image to a 24 bit rgb image
if
verbose
:
print
'grey2rgb'
image
=
imageop
.
grey2rgb
(
greyimage
,
width
,
height
)
# Convert a 8-bit deep greyscale image to a 1-bit deep image by
# tresholding all the pixels. The resulting image is tightly packed
# and is probably only useful as an argument to mono2grey.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment