comparison Framework/Toolbox/ImageGeometry.cpp @ 346:c2e040ea8fbe am-2

rotation transform
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Oct 2018 19:40:36 +0200
parents f5d5814a41a0
children b70e9be013e4
comparison
equal deleted inserted replaced
345:55438b1ca317 346:c2e040ea8fbe
150 { 150 {
151 if (reader.GetValue(value, positionX, positionY)) 151 if (reader.GetValue(value, positionX, positionY))
152 { 152 {
153 *p = value; 153 *p = value;
154 } 154 }
155 else
156 {
157 Reader::Traits::SetZero(*p);
158 }
159 155
160 if (HasOffsetX) 156 if (HasOffsetX)
161 { 157 {
162 positionX += offsetX; 158 positionX += offsetX;
163 } 159 }
433 if (sourceX < floatWidth && 429 if (sourceX < floatWidth &&
434 sourceY < floatHeight) 430 sourceY < floatHeight)
435 { 431 {
436 reader.GetValue(*p, sourceX, sourceY); 432 reader.GetValue(*p, sourceX, sourceY);
437 } 433 }
438 else
439 {
440 Reader::Traits::SetZero(*p);
441 }
442 434
443 p++; 435 p++;
444 } 436 }
445 437
446 targetRow += targetPitch; 438 targetRow += targetPitch;