Skip to content

Commit c76bef7

Browse files
authored
Merge pull request #23 from thewtex/flip-lr
ENH: Flip app images left-right forward-backward
2 parents bf63690 + d4c85f0 commit c76bef7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/AcquireIntersonArrayBMode.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ int main( int argc, char * argv[] )
182182
direction.SetIdentity();
183183
ImageType::DirectionType::InternalMatrixType & vnlDirection = direction.GetVnlMatrix();
184184
vnlDirection.put(0, 0, 0.0);
185-
vnlDirection.put(0, 1, -1.0);
185+
vnlDirection.put(0, 1, 1.0);
186186
vnlDirection.put(1, 0, 1.0);
187187
vnlDirection.put(1, 1, 0.0);
188+
vnlDirection.put(2, 2, -1.0);
188189
image->SetDirection( direction );
189190
image->Allocate();
190191

app/AcquireIntersonArrayRF.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ int main( int argc, char * argv[] )
162162
direction.SetIdentity();
163163
ImageType::DirectionType::InternalMatrixType & vnlDirection = direction.GetVnlMatrix();
164164
vnlDirection.put(0, 0, 0.0);
165-
vnlDirection.put(0, 1, -1.0);
165+
vnlDirection.put(0, 1, 1.0);
166166
vnlDirection.put(1, 0, 1.0);
167167
vnlDirection.put(1, 1, 0.0);
168+
vnlDirection.put(2, 2, -1.0);
168169
image->SetDirection( direction );
169170
image->Allocate();
170171

0 commit comments

Comments
 (0)