Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
331b00b2
Commit
331b00b2
authored
May 23, 2003
by
Ken Martin
Browse files
bug fix for image iterators
parent
1a198d23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Common/vtkImageIterator.txx
View file @
331b00b2
...
...
@@ -45,11 +45,12 @@ vtkImageIterator<DType>::vtkImageIterator(vtkImageData *id, int *ext)
template <class DType>
void vtkImageIterator<DType>::NextSpan()
{
this->Pointer
= this->Pointer
+ this->Increments[1];
this->Pointer +
=
this->Increments[1];
this->SpanEndPointer += this->Increments[1];
if (this->Pointer >= this->SliceEndPointer)
{
this->Pointer = this->Pointer + this->ContinuousIncrements[2];
this->Pointer += this->ContinuousIncrements[2];
this->SpanEndPointer += this->ContinuousIncrements[2];
this->SliceEndPointer += this->Increments[2];
}
}
...
...
Common/vtkImageProgressIterator.txx
View file @
331b00b2
...
...
@@ -43,11 +43,12 @@ vtkImageProgressIterator<DType>::vtkImageProgressIterator(vtkImageData *imgd,
template <class DType>
void vtkImageProgressIterator<DType>::NextSpan()
{
this->Pointer
= this->Pointer
+ this->Increments[1];
this->Pointer +
=
this->Increments[1];
this->SpanEndPointer += this->Increments[1];
if (this->Pointer >= this->SliceEndPointer)
{
this->Pointer = this->Pointer + this->ContinuousIncrements[2];
this->Pointer += this->ContinuousIncrements[2];
this->SpanEndPointer += this->ContinuousIncrements[2];
this->SliceEndPointer += this->Increments[2];
}
if (this->ID)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment