shallowly updates getRegions() in ICPUImage.h (and methods explicit usages) to use std::span<>
to obtain raw pointers (required by some methods) <span>.data() and <span>.data() + <span>.size() is used, since it's the only method to access raw pointers without dereferencing iterators
dereferencing .end() iterator may cause address violation segfault
Testing
passes 24_ColorSpaceTest (requires a patch - see 0aa4c5)
TODO list:
[x] decide if methods like CBasicImageFilterCommon::executePerRegion should use iterators or raw pointers (current)
Description
shallowly updates
getRegions()
inICPUImage.h
(and methods explicit usages) to usestd::span<>
to obtain raw pointers (required by some methods)
<span>.data()
and<span>.data() + <span>.size()
is used, since it's the only method to access raw pointers without dereferencing iteratorsTODO list:
CBasicImageFilterCommon::executePerRegion
should use iterators or raw pointers (current)