MantisBT - ITK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004962 | ITK | public | 2007-05-02 10:45 | 2007-09-17 10:20 | |
| Reporter | Ivan Macia | ||||
| Assigned To | Julien Jomier | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Resolution Date | |||||
| Sprint | |||||
| Sprint Status | |||||
| Summary | 0004962: Error in normalization in itk::GaussianDerivativeSpatialFunction | ||||
| Description | In file itkGaussianDerivativeSpatialFunction when using m_Normalized to calculate a gaussian of unit area, the normalization factor seems to be wrong. According to what I expect (see attached document) the lines if (m_Normalized) { prefixDenom = m_Sigma[0]*m_Sigma[0]*m_Sigma[0]; for(unsigned int i = 1; i < VImageDimension; i++) { prefixDenom *= m_Sigma[i]*m_Sigma[i]*m_Sigma[i]; } prefixDenom *= 2 * 3.1415927; } should be replaced by if (m_Normalized) { prefixDenom = m_Sigma[m_Direction]*m_Sigma[m_Direction] for(unsigned int i = 0; i < VImageDimension; i++) prefixDenom *= m_Sigma[i]; prefixDenom *= vcl_pow( 2 * 3.1415927, VImageDimension / 2.0); } Also in line 78 multiplying by 2 at the beginning is not correct. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/988/NormalizedGaussianDerivatives.pdf | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-09-17 10:20 | Luis Ibanez | Note Added: 0009016 | |||
| Notes | |||||
|
|
|||||
|
|
||||