Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.io.image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.io.image
Commits
35817f88
There was a problem fetching the pipeline summary.
Commit
35817f88
authored
8 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Fixed documentation issue
parent
9cb57861
No related branches found
No related tags found
1 merge request
!20
[Automatic] update links and the ci mostly
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/io/image/__init__.py
+3
-3
3 additions, 3 deletions
bob/io/image/__init__.py
with
3 additions
and
3 deletions
bob/io/image/__init__.py
+
3
−
3
View file @
35817f88
...
...
@@ -20,14 +20,14 @@ def get_config():
return
bob
.
extension
.
get_config
(
__name__
,
version
.
externals
)
def
load
(
filename
,
extension
=
None
):
"""
load(filename) -> image
"""
load(filename
, extension
) -> image
This function loads and image from the file with the specified ``filename``.
The type of the image will be determined based on the ``extension`` parameter, which can have the following values:
- ``None``: The file name extension of the ``filename`` is used to determine the image type.
- ``
'
auto
'
``: The type of the image will be detected automatically, using
the :py:mod:`imghdr` module
.
- ``
'
.xxx
`
''
: The image type is determined by the given extension.
- ``
'
auto
'
``: The type of the image will be detected automatically, using
:py:func:`bob.io.image.get_correct_image_extension`
.
- ``
'
.xxx
'
``
: The image type is determined by the given extension.
For a list of possible extensions, see :py:func:`bob.io.base.extensions` (only the image extensions are valid here).
**Parameters:**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment