Closed jvarley closed 7 years ago
The depth images have a hardcoded max depth at 1, so anything greater than a meter away will saturate to black. I am not exactly sure what the best format for a depth image is. This is currently saving as a QImage Format_RGB32 with the r,g,b channels all having the same value. It definitely displays the nicest, but we are losing alot of precision. only 256 distinct depth values.
Would we want to get rid of scanSimulator? This is MUCH faster.:
jvarley@skye:~/graspit_img_save$ grep -ir ScanSimulator src
src/DBase/dbase_grasp.h:#include "scanSimulator.h"
src/DBase/dbase_grasp.cpp:#include "scanSimulator.h"
src/DBase/dbase_grasp.cpp: ScanSimulator sim;
src/DBase/dbase_grasp.cpp: sim.setType(ScanSimulator::WORLD_COORDINATES);
src/DBase/dbase_grasp.cpp: sim.setPosition(loc, dir, up, ScanSimulator::STEREO_CAMERA);
src/scanSimulator.cpp:// $Id: scanSimulator.cpp,v 1.5 2010/08/11 21:35:22 cmatei Exp $
src/scanSimulator.cpp:#include "scanSimulator.h"
src/scanSimulator.cpp:ScanSimulator::ScanSimulator()
src/scanSimulator.cpp:void ScanSimulator::setPosition(transf tr, AxesConvention convention)
src/scanSimulator.cpp:void ScanSimulator::setPosition(position p, vec3 optical_axis, vec3 up_axis, AxesConvention convention)
src/scanSimulator.cpp:void ScanSimulator::scan(std::vector
Might be a plugin
The render scripts were written by @jon-weisz
This adds a new item in the drop down menu right below saveImage that will save a depth Image of the scene.
Tested on: ubuntu 12.04, 14.04