Skip to content

Commit 2d55403

Browse files
A handful of minor changes to push version 3.0.0 out
1 parent 9955300 commit 2d55403

File tree

12 files changed

+252
-70
lines changed

12 files changed

+252
-70
lines changed

INSTALLGUIDE.rst

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,9 @@ environments, which you don't want.
203203

204204
Install ASP with the command::
205205

206-
conda install stereo-pipeline==2.7.0
206+
conda install stereo-pipeline==3.0.0
207207

208-
This will install ASP 2.7.0 together with ISIS 4.1.0.
209-
210-
Running instead::
211-
212-
conda install stereo-pipeline==isis5.0.1
213-
214-
will install a development version of ASP together with ISIS 5.0.1.
208+
This will install ASP 3.0.0 together with ISIS 5.0.1.
215209

216210
If using ISIS, the environmental variable ISISROOT should be set to
217211
point to this distribution, such as::
@@ -228,11 +222,11 @@ found as a set of .yaml files in the ``conda/`` subdirectory of the
228222
Stereo Pipeline GitHub repository. So, alternatively, the installation
229223
can happen as::
230224

231-
conda env create -f asp_2.7.0_linux_env.yaml
225+
conda env create -f asp_3.0.0_linux_env.yaml
232226

233227
or::
234228

235-
conda env create -f asp_2.7.0_osx_env.yaml
229+
conda env create -f asp_3.0.0_osx_env.yaml
236230

237231
depending on your platform. Then invoke, as earlier::
238232

@@ -261,11 +255,11 @@ The environments having the ASP dependencies are in the ``conda``
261255
directory of the Stereo Pipeline repository, as above. After
262256
downloading those, one can run on Linux::
263257

264-
conda env create -f asp_deps_2.7.0_linux_env.yaml
258+
conda env create -f asp_deps_3.0.0_linux_env.yaml
265259

266260
or on the Mac::
267261

268-
conda env create -f asp_deps_2.7.0_osx_env.yaml
262+
conda env create -f asp_deps_3.0.0_osx_env.yaml
269263

270264
This will create an ``asp_deps`` environment. Activate it with::
271265

@@ -304,7 +298,7 @@ Building VisionWorkbench and Stereo Pipeline on Linux::
304298
~/miniconda3/envs/asp_deps/bin/git clone \
305299
git@github.com:visionworkbench/visionworkbench.git
306300
cd visionworkbench
307-
git checkout 2.7.0 # check out the desired commit
301+
git checkout 3.0.0 # check out the desired commit
308302
mkdir -p build
309303
cd build
310304
~/miniconda3/envs/asp_deps/bin/cmake .. \
@@ -320,7 +314,7 @@ Building VisionWorkbench and Stereo Pipeline on Linux::
320314
~/miniconda3/envs/asp_deps/bin/git clone \
321315
git@github.com:NeoGeographyToolkit/StereoPipeline.git
322316
cd StereoPipeline
323-
git checkout 2.7.0 # check out the desired commit
317+
git checkout 3.0.0 # check out the desired commit
324318
mkdir -p build
325319
cd build
326320
~/miniconda3/envs/asp_deps/bin/cmake .. \
@@ -339,7 +333,7 @@ Building VisionWorkbench and ASP on OSX (just as above, but omitting the compile
339333
~/miniconda3/envs/asp_deps/bin/git clone \
340334
git@github.com:visionworkbench/visionworkbench.git
341335
cd visionworkbench
342-
git checkout 2.7.0 # check out the desired commit
336+
git checkout 3.0.0 # check out the desired commit
343337
mkdir -p build
344338
cd build
345339
~/miniconda3/envs/asp_deps/bin/cmake .. \
@@ -353,7 +347,7 @@ Building VisionWorkbench and ASP on OSX (just as above, but omitting the compile
353347
~/miniconda3/envs/asp_deps/bin/git clone \
354348
git@github.com:NeoGeographyToolkit/StereoPipeline.git
355349
cd StereoPipeline
356-
git checkout 2.7.0 # check out the desired commit
350+
git checkout 3.0.0 # check out the desired commit
357351
mkdir -p build
358352
cd build
359353
~/miniconda3/envs/asp_deps/bin/cmake .. \

NEWS.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
RELEASE 3.0.0, upcoming!
1+
RELEASE 3.0.0, July 27, 2021
2+
----------------------------
23

34
New functionality:
45
* Added new stereo algorithms: MGM (original author implementation),
5-
OpenCV SGBM, LIBELAS, MSMW, MSMW2, and OpenCV BM.
6+
OpenCV SGBM, LIBELAS, MSMW, MSMW2, and OpenCV BM to complement
7+
the existing ASP block matching, SGM, and MGM algorithms. See
8+
https://stereopipeline.readthedocs.io/en/latest/next_steps.html
9+
for usage. These will be further refined in subsequent releases.
610
* Added the ability to perform piecewise local epipolar alignment
711
for the input images, to be followed by a 1D disparity search (for
812
non-mapprojected images), as suggested by the Satellite Stereo
9-
Pipeline (S2P) approach.
13+
Pipeline (S2P) approach. This is still somewhat experimental.
1014
* Added the ability for a user to plug into ASP any desired stereo
1115
program working on image clips to which epipolar alignment has
1216
been applied (as is customary in the computer vision community)
@@ -27,7 +31,8 @@ isis:
2731
* Ship a full Python 3.6 runtime, as expected by ISIS.
2832

2933
csm:
30-
* Upgraded to USGSCSM 1.5.2.
34+
* Upgraded to USGSCSM 1.5.2 (ASP's own build of it has an additional
35+
bugfix for LRO NAC not present in the conda-forge package).
3136
* Validated the CSM model for CTX, HiRISE, and LRO NAC cameras.
3237
* Added documentation for how to create CSM models from .cub
3338
cameras.

RELEASEGUIDE

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,22 @@ The resulting release tarballs will go to BinaryBuilder/asp_tarballs.
108108

109109
8.) Commit and tag the release in the VW and ASP repos. Example:
110110

111-
git tag 2.7.0
111+
git tag 3.0.0
112112

113113
Push the tags to the remote server with:
114114

115-
git push origin 2.7.0 # commit to your branch
116-
git push god 2.7.0 # commit to main branch
115+
git push origin 3.0.0 # commit to your branch
116+
git push god 3.0.0 # commit to main branch
117+
118+
(Here it is assumed that 'origin' points to your own fork and 'god'
119+
points to the parent repository.)
117120

118121
If more commits were made and it is desired to apply this tag to a
119122
different commit, first remove the exiting tag with:
120123

121-
git tag -d 2.7.0
122-
git push origin :refs/tags/2.7.0
123-
git push god :refs/tags/2.7.0
124+
git tag -d 3.0.0
125+
git push origin :refs/tags/3.0.0
126+
git push god :refs/tags/3.0.0
124127

125128
9.) Upload the builds and the pdf documentation to GitHub, in the
126129
release area.
@@ -157,9 +160,9 @@ development, by updating the version number in:
157160

158161
in both the VW and ASP repositories.
159162

160-
If you just released version 2.7.0, we expect that the next feature
161-
release will be 2.8.0, if a major release, or 2.7.1 if a minor
162-
release, so the version tag should be updated to 2.8.0-alpha in
163+
If you just released version 3.0.0, we expect that the next feature
164+
release will be 3.1.0, if a major release, or 3.0.1 if a minor
165+
release, so the version tag should be updated to 3.1.0-alpha in
163166
anticipation (see https://semver.org for guidance).
164167

165168
13.) Reflect any changes in release policy by modifying this document.

docs/next_steps.rst

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,43 @@ This invokes block-matching stereo with parabola subpixel mode, which
3131
can be fast but not of high quality. The best results are likely
3232
produced with::
3333

34-
parallel_stereo --alignment-method local_epipolar \
34+
parallel_stereo --alignment-method affineepipolar \
3535
--stereo-algorithm asp_mgm --subpixel-mode 3 \
3636
<other options>
3737

3838
which uses ASP's implementation of MGM (:numref:`asp_sgm`).
3939

40-
ASP also ships with a handful of third-party stereo algorithms, such
40+
ASP also implements local alignment, when the input images are split
41+
into tiles (with overlap) and locally aligned. This makes it possible
42+
to use third-party algorithms in addition to the ones ASP implements.
43+
44+
This mode is still in development, and best results with it, for the
45+
moment, are obtained with ASP's own MGM algorithm, if invoked as
46+
follows::
47+
48+
parallel_stereo --alignment-method local_epipolar \
49+
--stereo-algorithm asp_mgm \
50+
<other options>
51+
52+
ASP also ships with the following third-party stereo algorithms:
4153
MGM (original author implementation), OpenCV SGBM, LIBELAS, MSMW,
4254
MSMW2, and OpenCV BM. For more details see :numref:`stereo_algos`.
4355

44-
For example, the external MGM implementation can be called as follows::
56+
For example, the external MGM implementation can be called as::
4557

4658
parallel_stereo --alignment-method local_epipolar \
4759
--stereo-algorithm mgm \
60+
--corr-tile-size 512 --sgm-collar-size 256 \
4861
<other options>
62+
63+
As before, this mode is still experimental.
4964

65+
Above we used tiles of size 512 pixels with an extra padding of 256
66+
pixels on each side, for a total size of 1024 pixels, to avoid using
67+
too much memory. The defaults in ``parallel_stereo`` are double these
68+
values, which work well with ASP's MGM which is more conservative with
69+
its use of memory but can be too much for this other implementation.
70+
5071
It is suggested to not specify here ``--subpixel-mode``, in which case
5172
it will use MGM's own implementation. Using ``--subpixel-mode 3`` will
5273
refine that result using ASP's subpixel implementation. Using

docs/stereo_algorithms.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,10 @@ SGBM options
372372
Choose among several flavors of SGBM. Use ``sgbm`` for the
373373
less-memory intensive mode. Setting this mode to ``hh`` will run
374374
the full-scale two-pass dynamic programming algorithm. It will
375-
consume O(image_width * image_height * num_disparities) bytes and
376-
it tends to crash for a large input disparity range. Use ``3way``
377-
for yet another flavor which OpenCV does not document.
375+
consume O(image_width * image_height * num_disparities) bytes of
376+
memory, and may run out of memory for a large input
377+
disparity range. Use ``3way`` for yet another flavor which OpenCV
378+
does not document.
378379

379380
-block_size (default = 3):
380381
Block size to use to match blocks from left to right image. It
@@ -537,6 +538,11 @@ follows.
537538
options being used, as well as what the input and output files
538539
are.
539540

541+
-debug_images (default = 0):
542+
If non-zero, save the images to disk right before being passed
543+
to libelas (the images are thus padded, aligned, and scaled
544+
to have byte pixels).
545+
540546
.. _msmw:
541547

542548
Multi-Scale Multi-Window stereo matching

docs/stereodefault.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ ip-per-image
3838

3939
ip-detect-method
4040
What type of interest point detection algorithm to use for image
41-
alignment. 0 = Custom OBAloG implementation (default) 1 = SIFT
42-
implementation from OpenCV 2 = ORB implementation from OpenCV If
41+
alignment. 0 = Custom OBAloG implementation (default), 1 = SIFT
42+
implementation from OpenCV, 2 = ORB implementation from OpenCV. If
4343
the default method does not perform well, try out one of the other
4444
two methods.
4545

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ project (StereoPipeline)
2121

2222
# The line below is used by the docs/ so don't change it
2323
# without testing the result. Versioning is based on https://semver.org
24-
set(PACKAGE_VERSION "2.7.0")
25-
#set(PACKAGE_VERSION "2.7.1-alpha")
24+
set(PACKAGE_VERSION "3.0.0")
25+
#set(PACKAGE_VERSION "3.0.1-alpha")
2626
set(PACKAGE_NAME "NASA Ames Stereo Pipeline")
2727
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
2828
set(PACKAGE_BUGREPORT "scott.t.mcmichael@nasa.gov, oleg.alexandrov@nasa.gov")

0 commit comments

Comments
 (0)