Skip to content

Commit

Permalink
re #27: Improvements to outgoing data structure and naming
Browse files Browse the repository at this point in the history
re #25: Decoupled plotting the spectrum from classifying the spectrum
re #26: Added scene initialization functions
  • Loading branch information
16djm10 committed Nov 15, 2022
1 parent 1b44681 commit 931cf29
Show file tree
Hide file tree
Showing 16 changed files with 1,689 additions and 210 deletions.
504 changes: 295 additions & 209 deletions BroadbandSpecModule/BroadbandSpecModule.py

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions BroadbandSpecModule/Resources/UI/BroadbandSpecModule.ui
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="enableClassificationButton">
<property name="text">
<string>Enable Classification</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="ctkCollapsibleButton" name="dataCollectionSection_2">
<property name="enabled">
Expand Down
44 changes: 44 additions & 0 deletions Config/PlusDeviceSet_Server_ThorLabsVideoCapture.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<PlusConfiguration version="2.0">

<DataCollection StartupDelaySec="2.0" >
<DeviceSet
Name="PlusServer: ThorLabs spectrometer"
Description="Broadcasting acquired spectrum through OpenIGTLink. First image row contains wavelength value, second image row contains intensities." />
<Device
Id="VideoDevice"
Type="ThorLabsVideo" >
<DataSources>
<DataSource Type="Video" Id="Video" />
</DataSources>
<OutputChannels>
<OutputChannel Id="VideoStream" VideoDataSourceId="Video" />
</OutputChannels>
</Device>
<Device
Id="CaptureDevice"
Type="VirtualCapture"
BaseFilename="RecordingTest.igs.mha"
EnableCapturingOnStart="FALSE" >
<InputChannels>
<InputChannel Id="VideoStream" />
</InputChannels>
</Device>
</DataCollection>

<PlusOpenIGTLinkServer
MaxNumberOfIgtlMessagesToSend="1"
MaxTimeSpentWithProcessingMs="50"
ListeningPort="18944"
SendValidTransformsOnly="true"
OutputChannelId="VideoStream" >
<DefaultClientInfo>
<MessageTypes>
<Message Type="IMAGE" />
</MessageTypes>
<ImageNames>
<Image Name="Image" EmbeddedTransformToFrame="Image" />
</ImageNames>
</DefaultClientInfo>
</PlusOpenIGTLinkServer>

</PlusConfiguration>
3 changes: 2 additions & 1 deletion Config/ThorLabsAscension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
Type="ThorLabsVideo"
AcquisitionRate="100"
IntegrationTimeSec="0.1"
AveragedItemsForFiltering="1"
Zebra = "1"
> <!-- IntegrationTimeSec default="0.05" --> <!-- AcquisitionRate Default="30" -->
> <!-- IntegrationTimeSec default="0.05" --> <!-- AcquisitionRate Default="30" --> <!-- AveragedItemsForFiltering Default="20"-->
<DataSources>
<DataSource
Type="Video"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added SOP_SkinDataCollection/SkinDataSetup.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SavedScenes/Sequence_pseudoSpectrum.seq.nrrd
Binary file not shown.
Binary file added TrainedModels/Old/KNN_BlueVsWhite.joblib
Binary file not shown.
Binary file added TrainedModels/Old/KNN_CardboardVsTeaBox.joblib
Binary file not shown.
Binary file added TrainedModels/Old/KNN_TestModel.joblib
Binary file not shown.
Binary file added TrainedModels/Old/my_checkpoint.pth.tar
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1,335 changes: 1,335 additions & 0 deletions v4_Data2Model.ipynb

Large diffs are not rendered by default.

0 comments on commit 931cf29

Please sign in to comment.