Skip to content

Commit 6d81d48

Browse files
committed
ENH: Add Direction to RF data
1 parent 282d63c commit 6d81d48

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/AcquireIntersonArrayRF.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ int main( int argc, char * argv[] )
157157
imageSpacing[ 1 ] = 38.0 / ( height_lines - 1 );
158158
imageSpacing[ 2 ] = 1;
159159
image->SetSpacing( imageSpacing );
160+
ImageType::DirectionType direction;
161+
direction.SetIdentity();
162+
ImageType::DirectionType::InternalMatrixType & vnlDirection = direction.GetVnlMatrix();
163+
vnlDirection.put(0, 0, 0.0);
164+
vnlDirection.put(0, 1, -1.0);
165+
vnlDirection.put(1, 0, 1.0);
166+
vnlDirection.put(1, 1, 0.0);
167+
image->SetDirection( direction );
160168
image->Allocate();
161169

162170
CallbackClientData clientData;

0 commit comments

Comments
 (0)