Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add VectorImage support to MeanImageFilter
Add support for the runtime length vector images of VectorImageFilter. The GenerateDataInSubregion method is overloaded to specially handle VariableLengthVector Images. The specialization avoids memory allocation multiple times per pixel from temporary variables, by pulling variable outside the loop. When the change of variable scope was applied to scalars a 20% performance decreases was observed with MSVC, so multiple methods are used.
- Loading branch information
Showing
4 changed files
with
84 additions
and
6 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
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