Skip to content

Commit 0f50e9f

Browse files
Merge pull request #220 from smathermather/image_mask_tutorial
2 parents ecc87e4 + a0bc353 commit 0f50e9f

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

source/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ The documentation is available in several languages. Some translations are incom
5353
flowchart
5454
outputs
5555
map-accuracy
56-
masks
56+
multispectral
5757
large
5858
flying
59-
multispectral
6059
requesting-features
6160
contributing
6261
faq

source/masks.rst

Lines changed: 0 additions & 29 deletions
This file was deleted.

source/tutorials.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,32 @@ For instance, point clouds properties can be modified to show elevation and also
822822
Advanced
823823
********
824824

825+
Using Image Masks
826+
=================
827+
828+
Starting from ODM ``2.0`` people can supply image masks to inform the software to skip reconstruction over certain areas. This is useful for cases where the sky was accidentally included in the input photos from oblique shots, or simply to limit the reconstruction of a single subject.
829+
830+
To add a mask, simply create a new black and white image of the same dimension as the target image you want to mask (you can use a program such as GIMP to do this). Color in black the areas to exclude from the reconstruction.
831+
832+
.. figure:: https://user-images.githubusercontent.com/1951843/93247037-ade87a00-f75b-11ea-8b42-25bc1d89279d.png
833+
:alt: Target image
834+
:align: center
835+
836+
.. figure:: https://user-images.githubusercontent.com/1951843/93247007-a2954e80-f75b-11ea-87b3-4f04bd1737b9.png
837+
:alt: Image mask
838+
:align: center
839+
840+
841+
.. figure:: https://user-images.githubusercontent.com/1951843/93246970-8f827e80-f75b-11ea-8179-5a8fdd9f5193.png
842+
:alt: 3D result (building is masked)
843+
:align: center
844+
845+
Name your file:
846+
847+
``<filename>_mask.JPG``
848+
849+
For example, ``DJI_0018.JPG`` can have a mask by creating a ``DJI_0018_mask.JPG`` file and include that in the list of images. You can use ``.JPG``, ``.PNG``, ``.BMP`` and ``.TIF`` formats for image masks.
850+
825851
Using Singularity
826852
=================
827853

@@ -1046,7 +1072,7 @@ Let us get the environment prepared for our testing:
10461072
::
10471073

10481074
root@c997a4c5611b:/var/www# cd /code
1049-
./configure.sh installruntimedepsonly
1075+
./configure.sh install
10501076
mkdir /code/SuperBuild/build
10511077
cd /code/SuperBuild/build
10521078

0 commit comments

Comments
 (0)