Commit Graph

118 Commits

Author SHA1 Message Date
Proton local user
2f31cf4b29 cleaning based on valgrind input
a number of cleanups, the most critical probably in ui_RegistrationView.cpp:403 setupParentUIMenu, where a variable was accessed before initialisation
2023-07-01 01:21:28 +02:00
Proton local user
33a9cc7ec2 SetDefaultPixel value of resampler 2023-06-27 09:43:10 +02:00
2d5a51a4aa Merge branch 'ScoutRTresampVolume' into 'ScoutRTUIDevel'
pCT Resampling

See merge request cpt_bioeng/drt!33
2023-06-14 14:00:08 +02:00
Proton local user
6162edacfd Interpolation on/off and desired spacing in lng in config 2023-06-14 13:57:21 +02:00
Proton local user
cdc75507ac Resampling by halfing spacing in Z directions 2023-06-12 16:19:04 +02:00
Proton local user
bbb1c5c428 First attempt resampler 2023-06-12 15:00:09 +02:00
Proton local user
ad7f0986f7 SOlved bug in reg23 related to initialization of simplexdelta in case of 6DOF.
Closing Issue number #60
2023-06-07 18:05:36 +02:00
Proton local user
4e2a7d87b1 Related to alredy closed Issue #97 - added update on ISO. Also taking out Panel Offset completely from Projection leads to some results. Makes sense. It is now commented on the code but will be kept in case of future analysis 2023-06-07 11:37:17 +02:00
Proton local user
005f42aa55 Closing Issue #97 - Panel offset set on Projected point as well as after inverse transform.
Dependencies on Image and Patient Orientation. Solved with filter knowledge of pCT parameters.
2023-06-06 17:37:49 +02:00
a59de4370c Merge branch 'Siddon' into 'ScoutRTUIDevel'
Siddon

See merge request cpt_bioeng/drt!31
2023-06-06 15:21:24 +02:00
Proton local user
39a9c1e47b Panel offset in contour projector 2023-06-06 14:16:46 +02:00
Proton local user
1c247296b2 Closing Issue #93 and #91 - The unit of length in the UI (all dialogs and widgets can now be set from config 2023-06-06 11:21:50 +02:00
Proton local user
90cfe3defd Siddon
revised code to correct ray calculation that uses boundaries instead of voxel centers as we were expecting
2023-06-06 10:48:06 +02:00
Proton local user
e8707bbddb Merge branch 'ScoutRTUIDevel' of https://git.psi.ch/cpt_bioeng/drt into ScoutRTUIDevel 2023-06-06 09:50:48 +02:00
Proton local user
6f3a5d70b6 Siddon geometry 2023-06-06 00:04:05 +02:00
Proton local user
a529ad033c Working on Issue #45 . New interaction function by clicking on button R of keyboard. In blending it does camera resetting and in WIping it centers the wipe widget.
Also added in config key PreserveLocalData
2023-06-05 12:55:23 +02:00
Proton local user
1aca4117c6 Amoeba iterations
-reopening issue #91
-passing our best guess of iteration instead of metric
2023-06-01 18:25:06 +02:00
Proton local user
012de2a204 Merge branch 'ScoutRTUIDevel' of https://git.psi.ch/cpt_bioeng/drt into ScoutRTUIDevel 2023-06-01 17:53:51 +02:00
Proton local user
21bb27c0f1 Export SRO matrix and dialog unit
- Fixed a transpose in export matrix to SRO
- Approval dialog in cm
2023-06-01 17:53:43 +02:00
Proton local user
3c3f1a378b Closing Issue #63 . Also relates to contour misplacement. Problems arise when canceling autoreg. Now fixed.
Also closing issue #91 - Not the most elegant solution. For amoeba we do not visualise Iteration but value of optimizer.
2023-06-01 14:43:55 +02:00
Proton local user
ef51c4173a Merge branch 'ScoutRTUIDevel' of https://git.psi.ch/cpt_bioeng/drt into ScoutRTUIDevel 2023-05-31 16:12:44 +02:00
Proton local user
74a294e06c Geo Cal review 2023-05-31 16:12:36 +02:00
Proton local user
55d26f8c01 Closing Issue #52 - SRO now writes Complete Isocentric Transform 2023-05-31 14:42:08 +02:00
Proton local user
43a1d129dd Merge branch 'ScoutRTUIDevel' of https://git.psi.ch/cpt_bioeng/drt into ScoutRTUIDevel 2023-05-27 00:46:34 +02:00
Proton local user
8a34450119 PanelOffset for FFS 2023-05-27 00:46:19 +02:00
Proton local user
c833837d8b Closing Issue #75: string for StationName is static but was never cleared. 2023-05-26 17:18:21 +02:00
Proton local user
7df40c19ad Set Degress of Freedom fo Registration in Config. 6 DOF auto and manual is working 2023-05-25 14:39:19 +02:00
Proton local user
c5319a5493 added new fields to COnfig View and Number Of hIstogram bins in MI 2023-05-25 09:27:20 +02:00
Proton local user
29e2935c59 All metric and optimizer parameters of Automatic Registration are moved to Config file 2023-05-24 18:52:44 +02:00
Proton local user
98ada50379 Reg23 ROI
- fixed the known issue of ROI not defined automatically before interaction
- whole region is used as default, until user changes that
- reset on patient unload, the next one should start again from full region.
2023-05-24 13:18:06 +02:00
Proton local user
3e8a113ae6 Menu
- Signals to itkImageProcessor to change metric and optimizer
2023-05-24 11:08:14 +02:00
205f2f9db1 Merge branch 'scoutRTUIDevelREG' into 'ScoutRTUIDevel'
Restructuring of reg23 code and ROI fix

See merge request cpt_bioeng/drt!29
2023-05-23 15:06:08 +02:00
Proton local user
47fe531aae R23 ROI Fixed and initial on LUT
- Fixed bug in ROI itkRegion definition, missing division by spacing
- Consistent results using Small (1mm) or Large (2mm) FoV
- Some initial work on LUT, to polish...
2023-05-19 23:40:46 +02:00
Proton local user
bc3d3e7e54 autoReg23 code restructure
- all automatic registration stuff moved to another itk object
- most of input are passed as pointers from the parent
2023-05-19 16:03:59 +02:00
Proton local user
d67627a6fc Review of multiple optimizers - metrics
- not usuable util the opti and metric types are better defined using enums
- ROI are passed to both metrics
- Full functionalty only for Powell(NCC or MI), mainly due to GetFinalR23Parameters which get those from Powell....
2023-05-17 23:53:02 +02:00
8d2976ebbc Merge branch 'scoutRTUIDevelREG' into 'ScoutRTUIDevel'
MapTransformToNewOrigin and CalcInternalTransformV3 moved to another file,...

See merge request cpt_bioeng/drt!28
2023-05-17 11:12:44 +02:00
Proton local user
ab29d81e5e UseOfRotations for hidden transform and station name
- itkDRT has method to set whether rotations should be used for import offset and hidden transform. Results checked against external code for final PAT conversion.
- helpers for query of station name and Fov moved to helpers functions file
- preparation of station name check in scout processor load of 2D and 3D images
2023-05-17 10:49:22 +02:00
Proton local user
21751524bb Calculation of offset in PAT and rework of signals to approval.
- offset calc is verified against outside script. To be careful now in case we want to exclude the rotations from import offset. For PAT calc we need the complete matrix, therefore we may need to filter the rotations somewhere else.
- initial work on signal of current transform. was based on readout of spin box. i would use internal storage and check it against spin.
- i leave it broken so that we know where to continue
2023-05-16 17:03:26 +02:00
Proton local user
e97a246427 Crash on close patient and removal of uncessary load from dir
- flipped unload sequence, Scouts, RTP, RTS, CT
- removed unused load functions
2023-05-16 13:57:58 +02:00
Proton local user
646ba2e0af Calculate Transfrom for SRO isocetric mapped to pCT Zero. 2023-05-15 18:09:04 +02:00
Proton local user
9b616b3b55 a number of autoREG and geometry fixes
- automatic registration actually makes use of ROI. Before were ignored.
- cleanup of user and hidden transform and pass to UI after registration.
- change of internal image interpolator used in autoREG. Now autoREG performs well.
- general number of working units variable.
- GetFinalRotations, GetFinalTranslations and GetTransformParameters become obsolete.
- GetFinalR23Parameters and GetCompleteIsocentricTransform and GetUserIsocentricTransform are provided.
- only GetCompleteIsocentricTransform is missing implementation.
2023-05-15 17:02:18 +02:00
Proton local user
d4c800dfcd R23 optimizes the isocentric IEC transform, internally the two internal transform are computed at every iteration.
As a result, the feedback to regDialog is now already correct, no need for flips or sign change.
CalculateExternalTransform becomes obsolete... and has been commented out.
Methods for gui to get latest paremeters have been rewritten.
2023-05-12 23:36:24 +02:00
Proton local user
6ad0344791 MapTransformToNewOrigin and CalcInternalTransformV3 moved to another file, ouside of scout processor 2023-05-12 16:13:12 +02:00
Proton local user
9a8faa0693 Simplified CalcInternalTransformV3 which makes use of T and R calculated by the transform Meta 2023-05-12 14:55:17 +02:00
Proton local user
c67281a10a new R23MetaInfo so that R23 does not need TransformMeta anymore 2023-05-12 14:00:32 +02:00
Proton local user
07db119315 backup before changing meta reg 2023-05-12 13:29:02 +02:00
48a96061c2 Merge branch 'ScoutRTUIDevel' into 'scoutRTUIDevelREG'
Added Check on Scouts Station Name and Manual Correction Steps in config....

See merge request cpt_bioeng/drt!25
2023-05-11 09:43:15 +02:00
Proton local user
9f126e8a34 debug commented 2023-05-11 09:41:10 +02:00
Proton local user
2a6a8d4922 Solved bug that would cause crash when trying to change parameters of regEngine with CT not yet loaded (example loading Scout LONG in DataView). Minor changes in UI functionalities to adjust for this new behaviour. Now loading of scouts is automatically followed by visualisation 2023-05-08 17:54:16 +02:00
Proton local user
b0beda81b8 REG working 2023-05-03 16:43:52 +02:00