View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010442ITKpublic2010-03-19 05:172010-11-18 21:09
ReporterJulien 
Assigned Tokentwilliams 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionITK-3-16 
Target VersionFixed in VersionITK-4-A1 
Summary0010442: itkRandomNonRepeatingIteratorWithIndex has non-reproductible behavior
DescriptionUsing 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.

Additional InformationA 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 );"

TagsNo tags attached.
Resolution Date2010-11-15
Sprint
Sprint Statuscompleted
Attached Filescxx file icon itkImageRandomNonRepeatingIteratorWithIndexRepeatibilityTest.cxx [^] (2,330 bytes) 2010-03-19 05:17

 Relationships

  Notes
(0023274)
kentwilliams (developer)
2010-11-15 17:01

Fix and test pushed as gerrit topic http://review.source.kitware.com/#change,362 [^]
(0023275)
kentwilliams (developer)
2010-11-15 17:02

waiting for topic approval to push to ITK4 master.
(0023401)
Luis Ibanez (manager)
2010-11-18 21:09

We have decided to skip the "resolved" status and move directly to "closed".

 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


Copyright © 2000 - 2018 MantisBT Team