YANG-H / Panoramix

Code of my CVPR'16 paper: "Efficient 3D Room Shape Recovery From a Single Panorama."
http://cgcad.thss.tsinghua.edu.cn/yanghao/3droom/
111 stars 54 forks source link

Problems about the structure of output mat file. #14

Closed haopo2005 closed 7 years ago

haopo2005 commented 7 years ago

Hi,

I have closed the showgui options due to lack of gpu. and I have got obj and mat output file at present. I dont understand the usage of depth, planes and segs in the output mat file.

1.depth the size of depth mat is quite similar with the size of panorama images. the value of the mat ranges from 0.57 to 1.5 maybe. I'd like to know its physical meaning. what's the relation between depth here and space depth? What's the correspondence between panorama pixels and depth here?

  1. planes There is reconstruction flag in each planes structure. I dont understand the reconstruction process the each plane. It's critical for me. Because the output obj file without texture information looks nice when it's rendered by meshlab. I want to know how you make it.

3.segs Dose segs represent the superpixels label? why is the size of this matrix quite similar with the size of panorama images?

May I have your webchart ID?

YANG-H commented 7 years ago
  1. depth - these are the depth distribution, each value in this distribution corresponds to a distance from the 3D structure to the viewpoint on the direction defined by the pixel;
  2. planes - .reconstructed = 0 means the plane is not reconstructed, otherwise the coefficients [a,b,c] of the plane equation ax+by+cz=1 are given in .plane_coeff;
  3. segs - these are the superpixel labels, the plane of each superpixel is given in planes.
haopo2005 commented 7 years ago

all right, and where are the textures pictures of these superpixel or plane? Do you use the zoomed panorama images as texture images? besides glsl, do you have any suggestion about the tool to render , stitch or edit these model?

YANG-H commented 7 years ago

Yes, the textures are rendered through GLSL based on the zoomed panorama. The mapping from the panorama image to the 3D superpixel planes can be easily formulated in shading languages like GLSL, but it is not explicitly supported by common modeling tools. I'm afraid I don't have any other suggestions ...