Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
robotpkg-wip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Show more breadcrumbs
Gepetto
robotpkg-wip
Commits
802c9ba9
Commit
802c9ba9
authored
10 years ago
by
Pierrick Koch
Browse files
Options
Downloads
Patches
Plain Diff
[wip/gladys] patch python bindings
parent
d84ac8aa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gladys/Makefile
+2
-0
2 additions, 0 deletions
gladys/Makefile
gladys/distinfo
+1
-0
1 addition, 0 deletions
gladys/distinfo
gladys/patches/patch-aa
+22
-0
22 additions, 0 deletions
gladys/patches/patch-aa
with
25 additions
and
0 deletions
gladys/Makefile
+
2
−
0
View file @
802c9ba9
...
...
@@ -8,6 +8,8 @@ CATEGORIES= mapping
MASTER_SITES
=
${
MASTER_SITE_OPENROBOTS:
=
${
NAME
}
/
}
MASTER_REPOSITORY
=
${
MASTER_REPOSITORY_OPENROBOTS_TRAC
}${
NAME
}
PKGREVISION
=
1
MAINTAINER
=
pierrick.koch@laas.fr
COMMENT
=
The Graph Library
for
Autonomous and DYnamic Systems
LICENSE
=
2-clause-bsd
...
...
This diff is collapsed.
Click to expand it.
gladys/distinfo
+
1
−
0
View file @
802c9ba9
SHA1 (gladys-0.2.3.tar.gz) = db3a5b092825c2890b1593d94f20095a54aad904
RMD160 (gladys-0.2.3.tar.gz) = f90a2243fb234f30fde6562221307d55e1190295
Size (gladys-0.2.3.tar.gz) = 41675 bytes
SHA1 (patch-aa) = a6757ecc7ce27c4bc86ecb9c1fcf9ce8488d090f
This diff is collapsed.
Click to expand it.
gladys/patches/patch-aa
0 → 100644
+
22
−
0
View file @
802c9ba9
diff --git python/gladys_python.cpp python/gladys_python.cpp
index 5725c58..1c71d61 100644
--- python/gladys_python.cpp
+++ python/gladys_python.cpp
@@ -69,7 +69,7 @@
static bpy::list py_get_band(gdalwrap::gdal& self, const std::string& name) {
}
static bpy::list py_get_band_as_uchar(gdalwrap::gdal& self, const std::string& name) {
- return std_vector_to_py_list(gdalwrap::vfloat2vuchar(self.get_band(name)));
+ return std_vector_to_py_list(gdalwrap::raster2bytes(self.get_band(name)));
}
static bpy::dict py_get_bands(gdalwrap::gdal& self) {
@@ -83,7 +83,7 @@
static bpy::dict py_get_bands_as_uchar(gdalwrap::gdal& self) {
bpy::dict retval;
for (size_t idx = 0; idx < self.bands.size(); idx++)
retval[ self.names[idx] ] = std_vector_to_py_list(
- gdalwrap::vfloat2vuchar( self.bands[idx] ) );
+ gdalwrap::raster2bytes( self.bands[idx] ) );
return retval;
}
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