MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0001559 | VTK | (No Category) | public | 2005-02-01 08:58 | 2016-08-12 09:54 |
| Reporter | Hideaki Hiraki | ||||
| Assigned To | Will Schroeder | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0001559: MaximumDistance is left in vtkImageEuclideanDistance when ConsiderAnisotropy is On | ||||
| Description | The following script should show a concentric distance map, but a very high value is shown spuriously on it. vtkSphere sphere vtkSampleFunction sample sample SetImplicitFunction sphere vtkImageThreshold thresh thresh SetInput [sample GetOutput] thresh ThresholdByUpper 0 thresh SetInValue 1 thresh SetOutValue 0 vtkImageEuclideanDistance distan distan SetInput [thresh GetOutput] vtkImageViewer viewer viewer SetInput [distan GetOutput] viewer SetColorWindow 2 viewer SetColorLevel 1 viewer Render In vtkImageEuclideanDistance, the default MaximumDistance is VTK_INT_MAX. The spurious parts keep the value unprocessed. Though I couldn't understand the algorithm, I found suspect lines in vtkImageEuclideanDistance.cxx : b=(int)(floor)((((buff[idx0]-buffer)/spacing)-1)/2); The variables buff[idx0] and buffer seem to be set squared distances. It's strange to divide only once by spacing. Moreover, if one of these variables was VTK_INT_MAX and spacing<<1, the result would overflow. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/5296/distfix.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036764 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||