VisRecon
Run it again
Dense reconstruction takes minutes to hours, and after one run the usual next step is another, with different settings, on the same images. VisRecon is built around that habit. It is a small multi-view reconstruction toolkit I wrote in 2025, made of separate tools that capture RGB-D sequences from an Intel RealSense camera, segment the subject, run a scripted COLMAP pipeline from feature extraction through to a mesh, and inspect the result. A directory convention joins them instead of a framework, and nothing re-captures or re-segments unless asked to.
I built it to reconstruct plants in an agricultural-robotics setting, where a reconstruction exists to measure something, leaf area or canopy shape, and kept it general enough to point at any other subject.
The toolkit is written in Python around COLMAP and the RealSense and released under MIT in a public repository. It grew out of an earlier repository of mine, Multiview Reconstruction.
Close to the worst case
For structure-from-motion, plants are close to the hardest subject there is. Leaves are thin, so a surface seen from two viewpoints is often seen edge-on in one of them. They are self-similar, so a descriptor on one leaf is easily matched to a descriptor on its neighbor. Large flat textured regions are rare, and the subject is green against a background that is often green too. On a tight orbit, COLMAP's automatic reconstructor either refuses to initialize or returns a cloud that is mostly background.
The toolkit makes one specific capture setup work reliably: a subject close to a hand-held RealSense, orbited deliberately, frame by frame. Every choice that departs from COLMAP's defaults follows from that setup.
Green and near
Segmentation writes a masked copy of every frame next to the raw one, and COLMAP reads only the masked copies. The mask joins two tests: a pixel survives when it is close to the camera and green, and everything else is blacked out. That is exactly right for a green plant on a background of any other color, and it is why a brown stem, a dry leaf, a pot or a fiducial marker never reaches the reconstruction.
Tuned for a hard subject
The reconstruction is one script that runs the COLMAP stages in order and wraps each call, so a failure stops the run and names its stage instead of carrying bad data forward. Three decisions in it carry most of the weight.
Feature extraction is set for a hard subject. An affine-adapted patch replaces SIFT's similarity-invariant one, which matters when the same leaf is seen from very different angles; descriptors are pooled across scales; and each image may yield many more features than the default. All three point the same way, toward more and better features, and together they multiply the cost of extraction several times over. That cost is the main reason the toolkit runs its own pipeline rather than the automatic reconstructor.
The mapper is allowed to start narrow. It may initialize from an image pair with a far smaller triangulation angle than COLMAP normally requires, because small orbiting captures often contain nothing wider. A narrow start is poorly conditioned, so its result is one to look at closely rather than take on trust.
The mapper is also allowed to produce several models. When part of a sequence fails to link, it emits the disconnected pieces separately, and a loop after it analyzes each model and keeps the one with the most registered images. Of all the glue in the pipeline, this is the most useful.
Dense stages and two meshes
The dense half undistorts the images at a capped resolution, the single largest lever on dense runtime, and runs PatchMatch stereo with geometric consistency, which removes much of the speckle at a higher cost and needs a CUDA build of COLMAP. Fusion follows, and then both a Poisson mesh and a Delaunay mesh. Building both is the point: where they disagree is exactly where the data does not support the reconstruction.
Each run leaves two artifacts per plant, the fused point cloud and the Poisson mesh, and the toolkit's own viewer opens both. The Poisson mesh looks cleaner because it fills in surface where nothing was observed, which on a plant means a membrane between leaves that should be empty. For measurement, the point cloud and the Delaunay mesh are the ones to use; the Poisson mesh is for pictures.
The repository also ships a set of sample input frames, so the pipeline can be tried without a camera. They show tabletop objects rather than plants, which exercises every stage apart from the green mask.