namespace afwGeom=lsst::afw::geom;
img = 100;
ImageT img2(img.getDimensions(), 100.0);
for (
int y = 0; y != img.getHeight(); ++
y) {
for (ImageT::x_iterator ptr = img.row_begin(y), end = img.row_end(y); ptr != end; ++ptr) {
*ptr = 100;
}
}
for (
int y = 0; y != img.getHeight(); ++
y) {
for (ImageT::x_iterator ptr = img.row_begin(y); ptr != img.row_end(y); ++ptr) {
*ptr = 100;
}
}
for (ImageT::iterator ptr = img.begin(), end = img.end(); ptr != end; ++ptr) {
*ptr = 100;
}
for (ImageT::reverse_iterator ptr = img.rbegin(), end = img.rend(); ptr != end; ++ptr) {
*ptr = 100;
}
for (ImageT::iterator ptr = img.at(0, 0), end = img.end(); ptr != end; ++ptr) {
*ptr = 100;
}
for (ImageT::fast_iterator ptr = img.begin(true), end = img.end(true); ptr != end; ++ptr) {
*ptr = 100;
}
for (
int x = 0; x != img.getWidth(); ++
x) {
for (ImageT::y_iterator ptr = img.col_begin(x), end = img.col_end(x); ptr != end; ++ptr) {
*ptr = 100;
}
}
int x = 0;
for (; x != img.getWidth()%4; ++
x) {
for (ImageT::y_iterator ptr = img.col_begin(x), end = img.col_end(x); ptr != end; ++ptr) {
*ptr = 100;
}
}
for (; x != img.getWidth(); x += 4) {
for (ImageT::y_iterator ptr0 = img.col_begin(x+0), end0 = img.col_end(x+0),
ptr1 = img.col_begin(x+1),
ptr2 = img.col_begin(x+2),
ptr3 = img.col_begin(x+3);
ptr0 != end0; ++ptr0, ++ptr1, ++ptr2, ++ptr3) {
*ptr0 = *ptr1 = *ptr2 = *ptr3 = 100;
}
}
img.writeFits("foo.fits");
return 0;
}