/
floodfill.txt
96 lines (56 loc) · 2.43 KB
/
floodfill.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.. _floodfill:
floodfill
*********
There are 2 forms of this command.
:code:`floodfill(image, start points, fill value, connectivity)`
================================================================
Performs flood fill. Fills start point and all its neighbours and their neighbours etc. recursively as long as the color of the pixel to be filled equals color of the start point.
This command can be used in the distributed processing mode. Use :ref:`distribute` command to change processing mode from local to distributed.
Arguments
---------
image [input & output]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Image to process.
start points [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** float32 image
List of start points for the fill.
fill value [input]
~~~~~~~~~~~~~~~~~~
**Data type:** real
Fill color.
connectivity [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** connectivity
**Default value:** All
Connectivity of the region to fill. Can be Nearest for connectivity to nearest neighbours only, or All for connectivity to all neighbours.
See also
--------
:ref:`grow`, :ref:`growlabels`, :ref:`floodfill`, :ref:`regionremoval`, :ref:`morphorec`
:code:`floodfill(image, start point, fill value, connectivity)`
===============================================================
Performs flood fill. Fills start point and all its neighbours and their neighbours etc. recursively as long as the color of the pixel to be filled equals color of the start point.
This command can be used in the distributed processing mode. Use :ref:`distribute` command to change processing mode from local to distributed.
Arguments
---------
image [input & output]
~~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image
Image to process.
start point [input]
~~~~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Starting point for the fill.
fill value [input]
~~~~~~~~~~~~~~~~~~
**Data type:** real
Fill color.
connectivity [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** connectivity
**Default value:** All
Connectivity of the region to fill. Can be Nearest for connectivity to nearest neighbours only, or All for connectivity to all neighbours.
See also
--------
:ref:`grow`, :ref:`growlabels`, :ref:`floodfill`, :ref:`regionremoval`, :ref:`morphorec`