Skip to content

Commit

Permalink
ENH: Allow Andor to set ImageToReference transform frame field
Browse files Browse the repository at this point in the history
  • Loading branch information
adamaji authored and adamrankin committed Jan 20, 2021
1 parent 5f6e855 commit c8220bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,13 @@ void vtkPlusAndorVideoSource::AdjustSpacing(int horizontalBins, int verticalBins
LOG_DEBUG("Adjusted spacing: " << spacingStream.str());
}

// ----------------------------------------------------------------------------
PlusStatus vtkPlusAndorVideoSource::SetFrameFieldImageToReferenceTransform(std::array<float, 16> transform)
{
this->imageToReferenceTransform = transform;
return PLUS_SUCCESS;
}

// ----------------------------------------------------------------------------
std::vector<double> vtkPlusAndorVideoSource::GetSpacing(int horizontalBins, int verticalBins)
{
Expand Down
5 changes: 5 additions & 0 deletions src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class vtkPlusDataCollectionExport vtkPlusAndorVideoSource: public vtkPlusDevice
PlusStatus SetTriggerMode(TriggerMode triggerMode);
TriggerMode GetTriggerMode();

PlusStatus SetFrameFieldImageToReferenceTransform(std::array<float, 16> transform);
std::vector<double> GetSpacing(int horizontalBins, int verticalBins);

/*! Normal operating temperature (degrees celsius). */
Expand Down Expand Up @@ -369,6 +370,10 @@ class vtkPlusDataCollectionExport vtkPlusAndorVideoSource: public vtkPlusDevice

double OutputSpacing[3] = { 0 };

/*! Frame field for image transform. Since applications of this device are
mainly stationary, don't use a tracker and just set the transform manually. */
std::array<float, 16> imageToReferenceTransform = { 0 };

igsioFieldMapType CustomFields;

/*! Use a separate thread for acquisition tasks. */
Expand Down

0 comments on commit c8220bb

Please sign in to comment.