cicwi / SliceRecon

This repository has moved to:
https://cicwi.github.io/RECAST3D
GNU General Public License v3.0
6 stars 4 forks source link

Resizing the bounding box for parallel beam geometry #5

Open adriaangraas opened 5 years ago

adriaangraas commented 5 years ago

I'm not sure if this is an issue for SliceRecon or RECAST3D. RECAST3D draws a cubic box irrespective of the z-direction in the geometry packet specification.

This is not really a direct problem, as the remainder of the box is filled up with a blank slice, but would be nice to have!

jwbuurlage commented 5 years ago

I have to think about this in more detail, but I will put some initial thoughts here.

The main reason for the cubic box is because of the way slice reconstructions work.

However, this restriction is only put on the reconstruction side. In fact, there is already support in RECAST3D for non-cubic volumes. This is activated simply by sending a GeometrySpecificationPacket to RECAST3D. See GeometryProtocol::process in RECAST3D for details.

Currently, a data adapter sends such a package to SliceRecon, but SliceRecon does not send this through to RECAST3D (because we force cubic volumes for now). If you want to take a stab at this:

  1. visualization_server should send a GeometrySpecificationPacket to RECAST3D.
  2. We should either have a convention for deciding which resolution slice to reconstruct for a given orientation, or be able to change the 'slice geometry' on the fly.