ITK/Examples/Utilities/RandomPermutation: Difference between revisions

From KitwarePublic
< ITK‎ | Examples
Jump to navigationJump to search
No edit summary
(deprecated content that is moved to sphinx)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
==RandomPermutation.cxx==
{{warning|1=The media wiki content on this page is no longer maintained. The examples presented on the https://itk.org/Wiki/* pages likely require ITK version 4.13 or earlier releasesIn many cases, the examples on this page no longer conform to the best practices for modern ITK versions.}}
<source lang="cpp">
#include <itkImageRandomNonRepeatingConstIteratorWithIndex.h>
 
int main(int, char*[])
{
  itk::RandomPermutation rp(5);
  rp.Dump();
  std::cout << std::endl;
 
   for(unsigned int i = 0; i < 5; i++)
    {
    std::cout << rp[i] << " ";
    }
  std::cout << std::endl << std::endl;
 
  rp.Shuffle();
  rp.Dump();
 
 
  return EXIT_SUCCESS;
}
 
</source>
 
{{ITKCMakeLists|RandomPermutation}}

Latest revision as of 20:48, 6 June 2019

Warning: The media wiki content on this page is no longer maintained. The examples presented on the https://itk.org/Wiki/* pages likely require ITK version 4.13 or earlier releases. In many cases, the examples on this page no longer conform to the best practices for modern ITK versions.