Comments (3)
The PNG loading code is written such that it always tries to convert the file's format to the format of the Image
object which the file is loaded into. So, if that works as intended, with a 3-channel 16-bit Image
used as output, loading the images might already work.
However, to actually use 16-bit RGB images in the SLAM algorithm would require adjusting other places in the code. As a start, this definition has Vec3u8
(a 3-channel 8-bit unsigned char vector) hard-coded as color type and would need to be adjusted to something like Eigen::Matrix<u16, 3, 1>
:
And then any potential other places that might assume that the color is 8 bits per channel need to be adjusted. For example, the color storage in keyframes:
from badslam.
I adjusted a lot of places that assume the color image is 8-bit RGB along the dirction of data flow, but I got stuck here:
badslam/libvis/src/libvis/cuda/cuda_buffer.cu
Line 154 in c66bdc8
Once I extend the "template class CUDABuffer_<uchar4>;
" to "template class CUDABuffer_<ushort4>;
", an error
""Invalid operands to binary expression ('ushort4' and 'float')" "
occurs at :
How do you think I should adjust this?
Hmm, does that mean I should override operator "*"? Does it make sense for next steps?
from badslam.
No, look here instead:
badslam/libvis/src/libvis/cuda/cuda_buffer.cu
Line 124 in c66bdc8
This list contains an entry for uchar4
:
badslam/libvis/src/libvis/cuda/cuda_buffer.cu
Line 132 in c66bdc8
So it probably makes sense to add an entry for ushort4
there as well. This should cause the function containing line 89 not to be compiled for that type.
from badslam.
Related Issues (20)
- Can not generate .ply file HOT 3
- License or patents about badslam HOT 1
- Could not find a package configuration file provided by "SuiteSparse" with any of the following names HOT 1
- Target "badslam_test" links to target "Eigen3::Eigen" but the target was not found. HOT 4
- About Evaluation Results on ETH3D SLAM Benchmark HOT 2
- badslam runtime error on jetson nano?
- slam_test error! HOT 3
- Build with CUDA 11.6 HOT 4
- FATL| RealSense input requested, but the program was compiled without RealSense support. HOT 5
- Autotune Cuda Error: out of memory HOT 1
- angle_difference in Direct BA HOT 2
- Hello, when I want to run tum_ This error occurs when FR1 data set HOT 1
- opengv 3rdparty HOT 2
- Let libpng expand the color channels to 16 bit if requested HOT 2
- Question about the required depth maps precision
- Error on Ubuntu 22 and Nvidia 4090 HOT 4
- Docker build error
- How is timestamp supposed to be obtained?
- Compile error about the g2o on Windows 10 with VS2019
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badslam.