106 ArrayImageAdapter< Value*, Domain > image( data,
domain );
111 for (
auto & value : image )
117 aBoard.
saveSVG(
"ArrayImageAdapter_image.svg");
125 ArrayImageAdapter< Value const*, Domain > constSubImage( data,
domain, subDomain );
130 aBoard.
saveSVG(
"ArrayImageAdapter_subImage.svg");
137 ArrayImageAdapter< Value*, Domain > subImage( data,
domain, subDomain );
147 for (
auto point : subImage.domain() )
150 subImage.setValue( point, 25*(cos(coord)+1) );
156 aBoard.
saveSVG(
"ArrayImageAdapter_subImage_modifByDomain.svg");
162 for (
auto it = subImage.begin(), it_end = subImage.end(); it != it_end; ++it )
164 Value coord = (it.getPoint() -
Point(4,4)).norm();
165 *it = 25*(sin(coord)+1);
171 aBoard.
saveSVG(
"ArrayImageAdapter_subImage_modifByImage.svg");
178 for (
auto& value : anIterableImage)
184 ArrayImageAdapter< ImageContainerBySTLVector<Domain,Value>::Iterator,
Domain > subImageSTL( anIterableImage.begin(),
domain, subDomain );
196 std::copy( subImage.cbegin(), subImage.cend(), subImageSTL.begin() );
201 aBoard.
saveSVG(
"ArrayImageAdapter_subImage_copyToImageSTL.svg");