39 lines
570 B
ReStructuredText
39 lines
570 B
ReStructuredText
.. _FloodFill:
|
|
|
|
How to fill an image
|
|
**********************
|
|
|
|
Goal
|
|
=====
|
|
|
|
In this tutorial you will learn how to:
|
|
|
|
* Use the :flood_fill:`FloodFill <>` OpenCV function
|
|
|
|
Cool Theory
|
|
============
|
|
|
|
.. note::
|
|
The explanation below belongs to the book **Learning OpenCV** by Bradski and Kaehler.
|
|
|
|
|
|
Code
|
|
======
|
|
|
|
This tutorial code's is shown lines below. You can also download it from `here <https://code.ros.org/svn/opencv/trunk/opencv/samples/cpp/tutorial_code/Image_Processing/Morphology_1.cpp>`_
|
|
|
|
.. code-block:: cpp
|
|
|
|
|
|
|
|
Explanation
|
|
=============
|
|
|
|
|
|
|
|
|
|
Results
|
|
========
|
|
|
|
|