Skip to content

Commit 3212076

Browse files
committed
Updating documentation.
1 parent c8c1a87 commit 3212076

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
See the [roadmap](https://github.com/niessner/Opt/blob/master/ROADMAP.md) for near-future changes.
88

99
## [Unreleased]
10+
11+
## [0.2.1] - 2017-10-25
1012
### Added
1113
- Roadmap
1214
- Partially-automated regression test script.
1315
- Verbose-mode GPU memory usage reporting
16+
- Improved documentation
17+
- Improved error messages
1418

15-
### Fixed
19+
### Fixed
1620
- [#91](https://github.com/niessner/Opt/issues/91): Graph energies with no unknown energies produce erroneous results
1721

1822
## [0.2.0] - 2017-10-22
@@ -32,6 +36,7 @@ See the [roadmap](https://github.com/niessner/Opt/blob/master/ROADMAP.md) for ne
3236
### Fixed
3337
- Memory leaks
3438

35-
[Unreleased]: https://github.com/niessner/Opt/compare/v0.2.0...HEAD
39+
[Unreleased]: https://github.com/niessner/Opt/compare/v0.2.1...HEAD
40+
[0.2.1]: https://github.com/niessner/Opt/compare/v0.2.0...v0.2.1
3641
[0.2.0]: https://github.com/niessner/Opt/compare/v0.1.1...v0.2.0
3742
[0.1.1]: https://github.com/niessner/Opt/v0.1.0...v0.1.1

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,21 @@ If you do not want the default behavior, you can use the `InBounds(x,y)` functio
344344

345345
It is also possible to exclude arbitrary pixels from the solve using the `Exclude(exp)` method. When `exp` is true, unknowns defined at these pixels will not be updated and residuals at these pixels will not be evaluated.
346346

347+
348+
### ComputedArray ###
349+
350+
Energy functions for neighboring pixels can share expensive-to-compute expressions. For instance,
351+
our [shape-from-shading example](https://github.com/niessner/Opt/blob/master/examples/shape_from_shading/shape_from_shading.t#L67) uses an expensive lighting calculation that is shared by neighboring pixels. We allow the user to turn these calculations into computed arrays, which behave
352+
like arrays when used in energy functions, but are defined as an expression of other arrays:
353+
354+
-- B_I is previously defined as a function that uses
355+
-- a large number of images. After this line, B_I can
356+
-- be accessed like a regular Array or Image
357+
B_I = ComputedArray("B_I", {W,H}, B_I(0,0))
358+
359+
Computed arrays can include computations using unknowns, and are recalculated as necessary during the optimization. Similar to scheduling annotations in Halide, they allow the user to balance recompute with locality at a high-level.
360+
361+
347362
### Vectors ###
348363

349364
vector = Vector(a,b,c)

ROADMAP.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
See the [roadmap](https://github.com/niessner/Opt/blob/master/ROADMAP.md) for near-future changes.
88

9-
## [0.2.1] - Estimated 2017-11-01
10-
### Adding
11-
- Improved documentation
12-
- Improved error messages
13-
14-
### Fixing
15-
- [#91](https://github.com/niessner/Opt/issues/91): Graph energies with no unknown energies produce erroneous results
16-
179
## [0.3.0] - Estimated 2017-11-07
1810
### Adding
1911
- Automated performance testing

0 commit comments

Comments
 (0)