Skip to content

Commit a5fb30b

Browse files
committedAug 27, 2015
Merge pull request #1 from che85/master
ProstateTRUSNav improvements
2 parents 32ce125 + bcf08f8 commit a5fb30b

12 files changed

+1162
-177
lines changed
 

‎CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 2.8.9)
22

3-
project(ProstateTrusNav)
3+
project(ProstateTRUSNav)
44

55
#-----------------------------------------------------------------------------
66
# Extension meta-information
@@ -18,7 +18,7 @@ include(${Slicer_USE_FILE})
1818

1919
#-----------------------------------------------------------------------------
2020
# Extension modules
21-
add_subdirectory(ProstateTrusNav)
21+
add_subdirectory(ProstateTRUSNav)
2222
## NEXT_MODULE
2323

2424
#-----------------------------------------------------------------------------
File renamed without changes.

‎ProstateTrusNav/CMakeLists.txt ‎ProstateTRUSNav/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-----------------------------------------------------------------------------
2-
set(MODULE_NAME ProstateTrusNav)
2+
set(MODULE_NAME ProstateTRUSNav)
33

44
#-----------------------------------------------------------------------------
55
set(MODULE_PYTHON_SCRIPTS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<PlusConfiguration version="2.3" PlusRevision="Plus-2.1.0.3427">
2+
<DataCollection StartupDelaySec="1">
3+
<DeviceSet Name="BK8818E depth 5.3cm w Slicer post calibration" Description="Epiphan frame grabber with Ascension EM trackers. Sensors in order: Red (111), Green (222), Blue (unmarked)."/>
4+
<Device
5+
Id="TrackerDevice"
6+
Type="Ascension3DG"
7+
AcquisitionRate="10"
8+
LocalTimeOffsetSec="0.15"
9+
FilterAcWideNotch="1"
10+
FilterAcNarrowNotch="0"
11+
FilterDcAdaptive="0"
12+
FilterLargeChange="0"
13+
FilterAlpha="0"
14+
ToolReferenceFrame="Tracker">
15+
<DataSources>
16+
<DataSource Type="Tool" Id="Stylus" BufferSize="500" PortName="0" AveragedItemsForFiltering="20"/>
17+
<DataSource Type="Tool" Id="Probe" BufferSize="500" PortName="1" AveragedItemsForFiltering="20"/>
18+
<DataSource Type="Tool" Id="Reference" BufferSize="500" PortName="2" AveragedItemsForFiltering="20"/>
19+
</DataSources>
20+
<OutputChannels>
21+
<OutputChannel Id="TrackerStream">
22+
<DataSource Id="Probe"/>
23+
<DataSource Id="Reference"/>
24+
<DataSource Id="Stylus"/>
25+
</OutputChannel>
26+
</OutputChannels>
27+
</Device>
28+
29+
<Device
30+
Id="VideoDevice"
31+
Type="Epiphan"
32+
AcquisitionRate="30"
33+
LocalTimeOffsetSec="0"
34+
VideoFormat="Y8"
35+
ClipRectangleOrigin="0 0"
36+
ClipRectangleSize="0 0">
37+
<DataSources>
38+
<DataSource Type="Video" Id="Video" PortUsImageOrientation="MN" BufferSize="100" AveragedItemsForFiltering="20"/>
39+
</DataSources>
40+
<OutputChannels>
41+
<OutputChannel Id="VideoStream" VideoDataSourceId="Video"/>
42+
</OutputChannels>
43+
</Device>
44+
45+
<Device Id="TrackedVideoDevice" Type="VirtualMixer" LocalTimeOffsetSec="0">
46+
<InputChannels>
47+
<InputChannel Id="TrackerStream"/>
48+
<InputChannel Id="VideoStream"/>
49+
</InputChannels>
50+
<OutputChannels>
51+
<OutputChannel Id="TrackedVideoStream"/>
52+
</OutputChannels>
53+
</Device>
54+
55+
<Device
56+
Id="CaptureDevice"
57+
AcquisitionRate="8"
58+
RequestedFrameRate="30"
59+
Type="VirtualDiscCapture"
60+
BaseFilename="Record.mha"
61+
EnableCapturing="FALSE" >
62+
<InputChannels>
63+
<InputChannel Id="TrackedVideoStream" />
64+
</InputChannels>
65+
</Device>
66+
67+
<Device
68+
Id="VolumeReconstructorDevice"
69+
Type="VirtualVolumeReconstructor">
70+
<InputChannels>
71+
<InputChannel Id="TrackedVideoStream" />
72+
</InputChannels>
73+
<VolumeReconstruction
74+
ImageCoordinateFrame="Image" ReferenceCoordinateFrame="Reference"
75+
Interpolation="NEAREST_NEIGHBOR" Optimization="NONE" Compounding="OFF" FillHoles="OFF" NumberOfThreads="2"
76+
FanAngles="-45 45" FanOrigin="613 193" FanDepth="600"
77+
OutputOrigin="-34 -144 -59" OutputExtent="0 150 0 130 0 70" OutputSpacing="0.5 0.5 0.5"
78+
ClipRectangleOrigin="278 283" ClipRectangleSize="670 600"/>
79+
</Device>
80+
81+
</DataCollection>
82+
83+
<PlusOpenIGTLinkServer MaxNumberOfIgtlMessagesToSend="1" MaxTimeSpentWithProcessingMs="10" ListeningPort="18944" OutputChannelId="TrackedVideoStream">
84+
<DefaultClientInfo>
85+
<MessageTypes>
86+
<Message Type="TRANSFORM"/>
87+
<Message Type="IMAGE"/>
88+
</MessageTypes>
89+
<TransformNames>
90+
<Transform Name="StylusToReference"/>
91+
<Transform Name="ImageToReference"/>
92+
</TransformNames>
93+
<ImageNames>
94+
<Image Name="Image" EmbeddedTransformToFrame="Reference"/>
95+
</ImageNames>
96+
</DefaultClientInfo>
97+
</PlusOpenIGTLinkServer>
98+
99+
<CoordinateDefinitions>
100+
<Transform From="Image" To="Probe"
101+
Matrix="
102+
-0.00625236 -0.0934791 -0.000162447 253.598
103+
0.00193054 -0.0002919 0.0936677 -0.272276
104+
-0.0934593 0.00624765 0.00194572 14.6551
105+
0 0 0 1"
106+
Error="0.8" Date="20150325"/>
107+
</CoordinateDefinitions>
108+
</PlusConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<PlusConfiguration version="2.1">
2+
<DataCollection StartupDelaySec="1.0" >
3+
<DeviceSet
4+
Name="PROCESSING BK8818E depth 5.3cm w Slicer post calibration"
5+
Description="Epiphan frame grabber with Ascension EM trackers. Sensors in order: Red (111), Green (222), Blue (unmarked)."/>
6+
7+
<Device
8+
Id="TrackedVideoDevice"
9+
Type="OpenIGTLinkVideo"
10+
MessageType="TRACKEDFRAME"
11+
ServerAddress="127.0.0.1"
12+
ServerPort="18000"
13+
IgtlMessageCrcCheckEnabled="false"
14+
LocalTimeOffsetSec="0" >
15+
<DataSources>
16+
<DataSource Type="Video" Id="Video" PortUsImageOrientation="MN" />
17+
</DataSources>
18+
<OutputChannels>
19+
<OutputChannel Id="TrackedVideoStream" VideoDataSourceId="Video" />
20+
</OutputChannels>
21+
</Device>
22+
23+
<Device
24+
Id="CaptureDevice"
25+
AcquisitionRate="8"
26+
RequestedFrameRate="30"
27+
Type="VirtualDiscCapture"
28+
BaseFilename="Record.mha"
29+
EnableCapturing="FALSE" >
30+
<InputChannels>
31+
<InputChannel Id="TrackedVideoStream" />
32+
</InputChannels>
33+
</Device>
34+
35+
<Device
36+
Id="VolumeReconstructorDevice"
37+
Type="VirtualVolumeReconstructor">
38+
<InputChannels>
39+
<InputChannel Id="TrackedVideoStream" />
40+
</InputChannels>
41+
<VolumeReconstruction
42+
ImageCoordinateFrame="Image" ReferenceCoordinateFrame="Reference"
43+
Interpolation="NEAREST_NEIGHBOR" Optimization="NONE" Compounding="OFF" FillHoles="OFF" NumberOfThreads="2"
44+
FanAngles="-45 45" FanOrigin="613 193" FanDepth="600"
45+
OutputOrigin="-34 -144 -59" OutputExtent="0 150 0 130 0 70" OutputSpacing="0.5 0.5 0.5"
46+
ClipRectangleOrigin="278 283" ClipRectangleSize="670 600"/>
47+
</Device>
48+
49+
<!-- <Device
50+
Id="VolumeReconstructorDevice"
51+
Type="VirtualVolumeReconstructor"
52+
OutputVolDeviceName="RecVol_Reference">
53+
<InputChannels>
54+
<InputChannel Id="TrackedVideoStream" />
55+
</InputChannels>
56+
<VolumeReconstruction
57+
ImageCoordinateFrame="Image" ReferenceCoordinateFrame="Reference"
58+
Interpolation="LINEAR" Optimization="NONE" CompoundingMode="MEAN" FillHoles="OFF" NumberOfThreads="2"
59+
ClipRectangleOrigin="0 0" ClipRectangleSize="820 616"
60+
OutputOrigin="-15 -15 30" OutputExtent="0 300 0 300 0 300" OutputSpacing="0.15 0.15 0.15" />
61+
</Device> -->
62+
</DataCollection>
63+
64+
<PlusOpenIGTLinkServer
65+
MaxNumberOfIgtlMessagesToSend="1"
66+
MaxTimeSpentWithProcessingMs="10"
67+
ListeningPort="18944"
68+
SendValidTransformsOnly="true"
69+
OutputChannelId="TrackedVideoStream" >
70+
<DefaultClientInfo>
71+
<MessageTypes>
72+
<Message Type="IMAGE" />
73+
<Message Type="TRANSFORM" />
74+
</MessageTypes>
75+
<TransformNames>
76+
<Transform Name="StylusToReference"/>
77+
<Transform Name="ImageToReference"/>
78+
</TransformNames>
79+
<ImageNames>
80+
<Image Name="Image" EmbeddedTransformToFrame="Reference" />
81+
</ImageNames>
82+
</DefaultClientInfo>
83+
</PlusOpenIGTLinkServer>
84+
85+
<CoordinateDefinitions>
86+
<Transform From="Image" To="Probe"
87+
Matrix="
88+
-0.00625236 -0.0934791 -0.000162447 253.598
89+
0.00193054 -0.0002919 0.0936677 -0.272276
90+
-0.0934593 0.00624765 0.00194572 14.6551
91+
0 0 0 1"
92+
Error="0.8" Date="20150325"/>
93+
</CoordinateDefinitions>
94+
95+
</PlusConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<PlusConfiguration version="2.1">
2+
<DataCollection StartupDelaySec="1">
3+
<DeviceSet
4+
Name="ACQUISITION BK8818E depth 5.3cm w Slicer post calibration"
5+
Description="Epiphan frame grabber with Ascension EM trackers. Sensors in order: Red (111), Green (222), Blue (unmarked)."/>
6+
7+
<Device
8+
Id="TrackerDevice"
9+
Type="Ascension3DG"
10+
AcquisitionRate="10"
11+
LocalTimeOffsetSec="0.15"
12+
FilterAcWideNotch="1"
13+
FilterAcNarrowNotch="0"
14+
FilterDcAdaptive="0"
15+
FilterLargeChange="0"
16+
FilterAlpha="0"
17+
ToolReferenceFrame="Tracker">
18+
<DataSources>
19+
<DataSource Type="Tool" Id="Stylus" BufferSize="500" PortName="0" AveragedItemsForFiltering="20"/>
20+
<DataSource Type="Tool" Id="Probe" BufferSize="500" PortName="1" AveragedItemsForFiltering="20"/>
21+
<DataSource Type="Tool" Id="Reference" BufferSize="500" PortName="2" AveragedItemsForFiltering="20"/>
22+
</DataSources>
23+
<OutputChannels>
24+
<OutputChannel Id="TrackerStream">
25+
<DataSource Id="Probe"/>
26+
<DataSource Id="Reference"/>
27+
<DataSource Id="Stylus"/>
28+
</OutputChannel>
29+
</OutputChannels>
30+
</Device>
31+
32+
<Device
33+
Id="VideoDevice"
34+
Type="Epiphan"
35+
AcquisitionRate="30"
36+
LocalTimeOffsetSec="0"
37+
VideoFormat="Y8"
38+
ClipRectangleOrigin="0 0"
39+
ClipRectangleSize="0 0">
40+
<DataSources>
41+
<DataSource Type="Video" Id="Video" PortUsImageOrientation="MN" BufferSize="100" AveragedItemsForFiltering="20"/>
42+
</DataSources>
43+
<OutputChannels>
44+
<OutputChannel Id="VideoStream" VideoDataSourceId="Video"/>
45+
</OutputChannels>
46+
</Device>
47+
48+
<Device Id="TrackedVideoDevice" Type="VirtualMixer" LocalTimeOffsetSec="0">
49+
<InputChannels>
50+
<InputChannel Id="TrackerStream"/>
51+
<InputChannel Id="VideoStream"/>
52+
</InputChannels>
53+
<OutputChannels>
54+
<OutputChannel Id="TrackedVideoStream"/>
55+
</OutputChannels>
56+
</Device>
57+
58+
</DataCollection>
59+
60+
<PlusOpenIGTLinkServer
61+
MaxNumberOfIgtlMessagesToSend="1"
62+
MaxTimeSpentWithProcessingMs="50"
63+
ListeningPort="18000"
64+
SendValidTransformsOnly="true"
65+
OutputChannelId="TrackedVideoStream" >
66+
<DefaultClientInfo>
67+
<MessageTypes>
68+
<Message Type="TRACKEDFRAME" />
69+
</MessageTypes>
70+
</DefaultClientInfo>
71+
</PlusOpenIGTLinkServer>
72+
</PlusConfiguration>

‎ProstateTRUSNav/ProstateTRUSNav.py

+883
Large diffs are not rendered by default.
File renamed without changes.

‎ProstateTrusNav/ProstateTrusNav.py

-173
This file was deleted.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# ProstateTrusNav
1+
# ProstateTRUSNav
22
Fused ultrasound/MRI guided prostate biopsy

0 commit comments

Comments
 (0)
Please sign in to comment.