Comments (3)
This is interesting, but obviously wrong!
So when i read the data as 16 bit unsigned Int and after that generate two images from the 614400 Values like below and then reshape and get the pixel value:
data = np.fromfile(file, dtype='>u2')
data1 = data[::2] #take even indices gives one image
data2 = data[1::2] #take odd indices gives another
data = np.add(data1, data2) #add them and boom
I get dik=632
and p_z=887.5mm
which seems way closer.
But i don´t get what happens there and i would really appreciate it if somebody can explain it to me :)
from rc_genicam_api.
The Scan3dCoordinateScale is only needed when converting the 16bit image (as in the GenICam image buffer) to a floating point disparity value in pixels.
Since you are using the cli tool gc_stream
which already saves the disparity image in float format (*.pfm), you alreay have the floating point value in pixels and the scaling should not be applied again.
from rc_genicam_api.
Ahh alright. Thank you! So i do the conversion like that:
p_x = (x-self.params['Scan3dPrincipalPointU']) * self.params['Scan3dBaseline']/dik
p_y = (y-self.params['Scan3dPrincipalPointV']) * self.params['Scan3dBaseline']/dik
p_z = self.params['Scan3dFocalLength'] * self.params['Scan3dBaseline']/dik
from rc_genicam_api.
Related Issues (20)
- Update to GenApi 3.2.0 Reference Implementation HOT 5
- windows compile problems HOT 2
- startStreaming() with non-negative number of buffers does not work HOT 3
- Unable to stream images from a Basler camera HOT 5
- Can't find usb transport layer in docker HOT 2
- I'm wrong HOT 1
- [Question]: Compatibility with GV-5260CP-M-GL GigE Vision Camera HOT 2
- Stream::getTLType(): std::string address passed to DSGetInfo HOT 2
- Enable multiple Components but receiving only the first one? HOT 2
- Chunk Data from rc_visard HOT 4
- ICommand::Execute() - wrong return type HOT 4
- Where can I find examples of using this API? HOT 1
- Issue with using READONLY mode for Basler camera HOT 7
- Compatibility with USB Vision cameras? HOT 2
- Does it support in nvidia TX2 ARM(V8) product HOT 2
- Linking in cmake HOT 4
- How can i find device by ip address?
- How can i open a device by ipaddress? HOT 1
- saving values instead of images HOT 2
- [BUG] Get this error ```Interface::open(): Module not initialized (-1002)``` occasionally HOT 3
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 rc_genicam_api.