MantisBT - ITK |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010442 | ITK | | public | 2010-03-19 05:17 | 2010-11-18 21:09 |
|
| Reporter | Julien | |
| Assigned To | kentwilliams | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | ITK-3-16 | |
| Target Version | | Fixed in Version | ITK-4-A1 | |
| Resolution Date | 2010-11-15 |
| Sprint | |
| Sprint Status | completed |
|
| Summary | 0010442: itkRandomNonRepeatingIteratorWithIndex has non-reproductible behavior |
| Description | Using ReinitializeSeed to control the seed of the random number generator, i can't have a reproducible behavior.
What I expect is that iterating on two images of the same size with the same initial seed means walking through the same set of pixels in the same order.
|
| Steps To Reproduce | |
| Additional Information | A program to reproduce the bug is attached.
And here is a fix :
in itkImageRandomNonRepeatingConstIteratorWithIndex.h, replace the implementation of RandomPermutation::ReinitializeSeed(int seed) from "m_Generator->Initialize ( seed );" to "m_Generator->SetSeed( seed );"
|
| Tags | No tags attached. |
| Relationships | |
| Attached Files | itkImageRandomNonRepeatingIteratorWithIndexRepeatibilityTest.cxx (2,330) 2010-03-19 05:17 https://public.kitware.com/Bug/file/2984/itkImageRandomNonRepeatingIteratorWithIndexRepeatibilityTest.cxx |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2010-03-19 05:17 | Julien | New Issue | |
| 2010-03-19 05:17 | Julien | File Added: itkImageRandomNonRepeatingIteratorWithIndexRepeatibilityTest.cxx | |
| 2010-11-07 08:59 | Hans Johnson | Status | new => assigned |
| 2010-11-07 08:59 | Hans Johnson | Assigned To | => kentwilliams |
| 2010-11-15 17:01 | kentwilliams | Note Added: 0023274 | |
| 2010-11-15 17:02 | kentwilliams | Resolution Date | => 2010-11-15 |
| 2010-11-15 17:02 | kentwilliams | Sprint Status | => completed |
| 2010-11-15 17:02 | kentwilliams | Note Added: 0023275 | |
| 2010-11-15 17:02 | kentwilliams | Status | assigned => resolved |
| 2010-11-15 17:02 | kentwilliams | Fixed in Version | => ITK-4-A1 |
| 2010-11-15 17:02 | kentwilliams | Resolution | open => fixed |
| 2010-11-18 21:09 | Luis Ibanez | Status | resolved => closed |
| 2010-11-18 21:09 | Luis Ibanez | Note Added: 0023401 | |