-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Statistics: assert that images have the same size
makeStatistics() assumes that image[0,0] and mask[0,0] are the same position. If mask is bigger than image, but all the unmasked area falls outside the image given this alignment, then attempting to calculate statistics will produce a NaN. We avoid this possibility by refusing to proceed if the image and mask do not have the same dimensions.
- Loading branch information
1 parent
7c5ed66
commit 3f988a8
Showing
3 changed files
with
42 additions
and
1 deletion.
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
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