Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Volumes/VolumeReslicer.cpp @ 1624:59f95b9ea858
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 17:30:36 +0100 |
parents | b7630b1a0253 |
children | 52b8b96cb55f |
comparison
equal
deleted
inserted
replaced
1623:74be0f498b08 | 1624:59f95b9ea858 |
---|---|
502 | 502 |
503 void VolumeReslicer::CheckIterators(const ImageBuffer3D& source, | 503 void VolumeReslicer::CheckIterators(const ImageBuffer3D& source, |
504 const CoordinateSystem3D& plane, | 504 const CoordinateSystem3D& plane, |
505 const OrientedVolumeBoundingBox& box) const | 505 const OrientedVolumeBoundingBox& box) const |
506 { | 506 { |
507 for (unsigned int y = 0; y < slice_->GetHeight(); y++) | 507 const unsigned int width = slice_->GetWidth(); |
508 const unsigned int height = slice_->GetHeight(); | |
509 | |
510 for (unsigned int y = 0; y < height; y++) | |
508 { | 511 { |
509 FastRowIterator fast(*slice_, extent_, plane, box, y); | 512 FastRowIterator fast(*slice_, extent_, plane, box, y); |
510 SlowRowIterator slow(*slice_, extent_, plane, box, y); | 513 SlowRowIterator slow(*slice_, extent_, plane, box, y); |
511 | 514 |
512 for (unsigned int x = 0; x < slice_->GetWidth(); x++) | 515 for (unsigned int x = 0; x < width; x++) |
513 { | 516 { |
514 float px, py, pz; | 517 float px, py, pz; |
515 fast.GetVolumeCoordinates(px, py, pz); | 518 fast.GetVolumeCoordinates(px, py, pz); |
516 | 519 |
517 float qx, qy, qz; | 520 float qx, qy, qz; |