cpbotha / devide

This is the official DeVIDE project site: github.com/cpbotha/devide
BSD 3-Clause "New" or "Revised" License
27 stars 5 forks source link

testing.graph_editor.test_confidence_seed_connect incorrectly counting voxels #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mentioned test is counting segmented voxels with
vtkImageAccumulate.GetVoxelCount(), which gives the TOTAL voxel count.

This test should count SEGMENTED voxels with something like:
GetOutput().GetPointData().GetScalars().GetTuple1(1) 

I.e. the second bin in the histogram, which should contain all 1-valued
voxels.  To be sure, threshold everything to 0 and 1 unsigned chars, then
use the second bin.

Original issue reported on code.google.com by cpbotha on 17 Mar 2008 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by cpbotha on 20 Apr 2008 at 9:21

GoogleCodeExporter commented 9 years ago
Fixed in r2995.

Original comment by cpbotha on 7 Jun 2008 at 12:46