-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General
apply_matrix()
function (#87)
* Incremental commit on apply_matrix() function * Incremental commit on apply_matrix() function * First working version of apply_matrix * Improved apply_matrix() * Small fixes and improvements * Added generic Coreg.from_... functions. Added is_rigid property to check if the Coreg class can be represented as a rigid transform. Made _apply_func, _apply_pts_func and _to_matrix_func optional under the right conditions. * Removed (now) redundant parts of Coreg subclasses since the Coreg base class can do more. * Removed duplicated function. * Small fixes * Added scikit-image as dependency * Removed obsolete statement and improved invert_matrix to check the matrix as well. Marked a spstats test as ignored since it kept randomly failing * Improved docstring for apply_matrix() * Changed default apply_matrix resampling mode to bilinear and reduced expected errors appropriately. * Added dilate_mask argument and set the fake nodata value to the nanmedian to reduce the risk of weird outliers. * Changed name of is_rigid property to is_affine * Added centroid handling to Coreg classes. Set default centroid to the middle of the raster instead of lower left.
- Loading branch information
1 parent
d103eb6
commit 8faaef1
Showing
5 changed files
with
451 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ dependencies: | |
- rasterio | ||
- scipy | ||
- tqdm | ||
- scikit-image | ||
- pip | ||
- proj-data | ||
- pip: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.