[#4854] DataGrid/UniformVolume::GetDownsampledAndAveraged return wrongly sized volume

Please log in

State: more information
Open
Date:
2010-05-13 23:37
Priority: more information
5
Submitted By:
Torsten Rohlfing (torstenrohlfing)
Assigned To: more information
Nobody (None)
Hardware: 
All
Product: 
CMTK-core
Operating System: 
All
Component: 
Libs
Version: 
svn/trunk
Severity: 
major
Resolution: 
Accepted As Bug
Summary: more information
DataGrid/UniformVolume::GetDownsampledAndAveraged return wrongly sized volume

Detailed description

When the input grid has an odd number of pixels in a dimension, the downsampled image is too large in that direction by one pixel. That extra pixel is simply copied from the input image, not averaged with its neighbors. That by itself is not too terrible, but the resulting downsampled image also gets the wrong shift offset in these cases (not strictly caused by the same code, but closely related).

Response

No Responses Have Been Posted

Attached Files:

Name Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item