Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PERF: ImageMaskSpatialObject use image regions from its base class
A significant performance improvement appears to be achieved by using the buffered region and the requested region as cached in its base class, instead of calling the virtual functions `GetBufferedRegion()` and `GetRequestedRegion()` from its image. A performance improvement of more than 8 percent was observed, from more than 0.80 sec. (before this commit) to less than 0.73 sec. (after this commit), when calling `ImageMaskSpatialObject::IsInsideInObjectSpace` 2^27 times, using a Visual Studio 2022 Release build.
- Loading branch information