Skip to content

Commit c8220bb

Browse files
adamajiadamrankin
authored andcommitted
ENH: Allow Andor to set ImageToReference transform frame field
1 parent 5f6e855 commit c8220bb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.cxx

+7
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,13 @@ void vtkPlusAndorVideoSource::AdjustSpacing(int horizontalBins, int verticalBins
434434
LOG_DEBUG("Adjusted spacing: " << spacingStream.str());
435435
}
436436

437+
// ----------------------------------------------------------------------------
438+
PlusStatus vtkPlusAndorVideoSource::SetFrameFieldImageToReferenceTransform(std::array<float, 16> transform)
439+
{
440+
this->imageToReferenceTransform = transform;
441+
return PLUS_SUCCESS;
442+
}
443+
437444
// ----------------------------------------------------------------------------
438445
std::vector<double> vtkPlusAndorVideoSource::GetSpacing(int horizontalBins, int verticalBins)
439446
{

src/PlusDataCollection/Andor/vtkPlusAndorVideoSource.h

+5
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class vtkPlusDataCollectionExport vtkPlusAndorVideoSource: public vtkPlusDevice
142142
PlusStatus SetTriggerMode(TriggerMode triggerMode);
143143
TriggerMode GetTriggerMode();
144144

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

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

370371
double OutputSpacing[3] = { 0 };
371372

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

374379
/*! Use a separate thread for acquisition tasks. */

0 commit comments

Comments
 (0)