Closed amjad14 closed 9 years ago
Does it show any (error) message?
On 11 July 2015 at 02:10, amjad14 notifications@github.com wrote:
After installing the binary for Voxel SDK and building DepthCapture.cpp, the executable doesn't perform any action.
— Reply to this email directly or view it on GitHub https://github.com/3dtof/voxelsdk/issues/22.
~ Prasad Bhat
No, a command prompt window pop up and disappear.
Could you please run the executable from a command prompt? That will allow us to catch the error messages.
it says required argument missing
You need to run the program from the command line with the following parameters:
DepthCapture.exe -v 0x0451 -p 0x9100 -f filename.bin -n 100 -t raw_processed
(replace the parameters as needed based on your board; the ones above are for the Haddock CDK, for capturing 100 frames of raw_processed data).
Thanks, it seems to work. But how the data is mapped inside .bin file?
Please see https://github.com/3dtof/voxelsdk/issues/6
On 13 July 2015 at 20:06, amjad14 notifications@github.com wrote:
Thanks, it seems to work. But how the data is mapped inside .bin file?
— Reply to this email directly or view it on GitHub https://github.com/3dtof/voxelsdk/issues/22#issuecomment-120950716.
~ Prasad Bhat
It helped! but i'm still wondering the order in term of pixels of the Depth and amplitude data. I can see that I get for depth data 76800 (320*240) times 4bytes (float), but what about the order?
I figured out the order.
for row = 1:240
for col= 1:320
Depthimage( row , col ) = A(k); // A is the float vector with the stream of data from binary file
k=k+1;
end
end
It is row-ordered depth data. Endianness is machine dependent.
On 14 July 2015 at 19:45, amjad14 notifications@github.com wrote:
Any information about the data order getting out of the line code on the right? f.write((char _)d->depth.data(), sizeof(float)_d->size.width*d->size.height);
— Reply to this email directly or view it on GitHub https://github.com/3dtof/voxelsdk/issues/22#issuecomment-121250375.
~ Prasad Bhat
I figured out the order.
for row = 1:240 for col= 1:320 Depthimage( row , col ) = A(k); // A is the float vector with the stream of data from binary file k=k+1; end end
Can I ask you how did you read .bin file generated from DepthCapture.cpp? I want to read bin file and pass it to opencv Mat
After installing the binary for Voxel SDK and building DepthCapture.cpp, the executable doesn't perform any action.