Skip to content

Commit 6ab2d0d

Browse files
committed
Come
1 parent 574d86b commit 6ab2d0d

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

documentation/all_docs_ref/all_refs.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ its use requires resorting to the \myreflink{Monolithic} mode.
6161

6262
## IP functions
6363

64-
{{ generate_tablerefs improc}}
65-
64+
| | | | | | | | |
65+
|:-----|:----|:----|:----|:----|:----|:----|:----|
66+
| \myreflink{fillsinks} | \myreflink{imfill} | \myreflink{imreconstruct} | | | | | |
6667

6768
## GDAL utility functions
6869

documentation/utilities/fillsinks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fillsinks(G::GMTgrid; conn=4, region=nothing, saco=false, insitu=false)
88

99
Fill sinks in a grid.
1010

11-
This function uses the ``imfill`` function to find how to fill sinks in a grid. But since ``imfill``
11+
This function uses the \myreflink{imfill} function to find how to fill sinks in a grid. But since \myreflink{imfill}
1212
operates on UInt8 matrices only the vertical (z) descrimination of the grid is reduced to 256 levels,
1313
which is not that much.
1414

documentation/utilities/imfill.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ Example from Matlab imfill.
3636
```julia
3737
using GMT
3838

39-
I = gmtread(getpath4docs("coins.jpg");
39+
I = gmtread(getpath4docs("coins.jpg"));
4040
Ibw1 = binarize(I);
41-
Ibw2 = imfill(Ibw);
41+
Ibw2 = imfill(Ibw1);
4242
grdimage(I, figsize=5)
43-
grdimage!(Ibw1, figsize=5, xshift=5)
44-
grdimage!(Ibw2, figsize=5, xshift=5, show=true)
43+
grdimage!(Ibw1, figsize=5, xshift=5.1)
44+
grdimage!(Ibw2, figsize=5, xshift=5.1, show=true)
4545
```
4646
\end{examplefig}
4747

documentation/utilities/imreconstruct.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ text(["Hello World"], region=(1.92,2.08,1.97,2.02), x=2.0, y=2.0,
3939
font=(30, "Helvetica-Bold", :white),
4040
frame=(axes=:none, bg=:black), figsize=(6,0), name="tmp.png")
4141

42-
# Read only one band (althouh gray scale the "tmp.png" is actually RGB)
42+
# Read only one band (althouh gray scale, the "tmp.png" is actually RGB)
4343
I = gmtread("tmp.png", band=1);
4444

4545
# Create a marker image that identifies the object in the image you want to extract through segmentation.
@@ -48,9 +48,9 @@ marker = fill(UInt8(0),(size(I)));
4848
marker[390,130] = UInt8(255);
4949

5050
# Perform segmentation of the mask image using the marker image.
51-
Ir = imreconstruct(Im, I)
52-
grdimage(I, figsize=8, yshift=2.56)
53-
grdimage!(Ir, figsize=8, show=true)
51+
Ir = imreconstruct(marker, I);
52+
grdimage(I, figsize=8)
53+
grdimage!(Ir, figsize=8, yshift=-2.57, show=true)
5454
```
5555
\end{examplefig}
5656

0 commit comments

Comments
 (0)