Use ParallelizeImageRegion
==========================

.. index::
   single: MultiThreaderBase

Synopsis
--------

This example demonstrates how to use MultiThreaderBase::ParallelizeImageRegion
to apply a non-trivial operation for all pixels in an image in parallel.
Doing something like this in a multi-threaded way
before ITK 5.0 required a class to be created.


Results
-------


.. figure:: CellsFluorescence1Out.png
  :scale: 100%
  :alt: Segmentation and custom colorization.

  Segmentation and custom colorization of an image using
  MultiThreaderBase::ParallelizeImageRegion.

Code
----

C++
...

.. literalinclude:: Code.cxx
   :lines: 18-


Classes demonstrated
--------------------

.. breathelink:: itk::MultiThreaderBase

Use ParallelizeImageRegion
==========================

.. index::
   single: MultiThreaderBase

Synopsis
--------

This example demonstrates how to use MultiThreaderBase::ParallelizeImageRegion
to apply a non-trivial operation for all pixels in an image, in parallel.  To
perform a multi-threaded operation like this prior ITK 5.0 required the
creation of a  class.


Results
-------


.. figure:: CellsFluorescence1.png
  :scale: 100%
  :alt: Segmentation and custom colorization.

  Segmentation and custom colorization of an image using
  MultiThreaderBase::ParallelizeImageRegion.

Code
----

C++
...

.. literalinclude:: Code.cxx
   :lines: 18-


Classes demonstrated
--------------------

.. breathelink:: itk::MultiThreaderBase

Fix CellsFluorescence1.png path in Use ParallelizeImageRegion
BUG: Fix CellsFluorescence1.png path in Use ParallelizeImageRegion

Also make grammar improvements.
