Skip to content

Commit

Permalink
BUG: setting wrong indices
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Jan 12, 2024
1 parent 3552d64 commit 05b3c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/ImageMath_Templates.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -3756,8 +3756,8 @@ TimeSeriesToMatrix(int argc, char * argv[])
{
typename MatrixImageType::IndexType matind;
matind.Fill(0);
matind[1] = t;
matind[2] = voxct;
matind[0] = t;
matind[1] = voxct;
tind[ImageDimension - 1] = t;
Scalar pix = image1->GetPixel(tind);
mSample(t) = pix;
Expand Down

0 comments on commit 05b3c28

Please sign in to comment.