Commit Graph

136 Commits

Author SHA1 Message Date
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
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
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
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
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
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
646ba2e0af Calculate Transfrom for SRO isocetric mapped to pCT Zero. 2023-05-15 18:09:04 +02:00
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
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
6ad0344791 MapTransformToNewOrigin and CalcInternalTransformV3 moved to another file, ouside of scout processor 2023-05-12 16:13:12 +02:00
9a8faa0693 Simplified CalcInternalTransformV3 which makes use of T and R calculated by the transform Meta 2023-05-12 14:55:17 +02:00
c67281a10a new R23MetaInfo so that R23 does not need TransformMeta anymore 2023-05-12 14:00:32 +02:00
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
9f126e8a34 debug commented 2023-05-11 09:41:10 +02:00
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
b0beda81b8 REG working 2023-05-03 16:43:52 +02:00
2d9d3d97bd RTPlan data widget as TreeWidget 2023-05-03 16:43:13 +02:00
24e7435376 Merge branch 'scoutRTUIDevelTemp' into 'ScoutRTUIDevel'
Scout rtui devel temp into Devel

See merge request cpt_bioeng/drt!24
2023-05-03 14:19:18 +00:00
8cdb53731f Merge branch 'ScoutRTUIDevel' into 'scoutRTUIDevelTemp'
# Conflicts:
#   itkDTRrecon/itkImageProcessor.cpp
2023-05-03 14:14:16 +00:00
8e6c9e9aba Some work on UI 2023-05-03 16:08:17 +02:00
97674c6b4b Cleanup debug print 2023-05-03 15:19:50 +02:00
9b5921dd60 autoReg working 2023-05-03 14:41:52 +02:00
f166060a71 review of projection geometry definition
- introduction of CalculateInternalTransformV2
- Each projection maps the isocentric transform (RTIso COR) to its own projection center, including calibration offset.
- Direct comparison with previous implementation of CalculateInternalTransform not done... yet.
- Results on validation dataset are good.
- This change was triggered by rather large errors (ca. 0.8mm) on validation dataset.
- Both fakeIso and DCM RTPlan iso have been updated to V2.
2023-05-02 23:46:48 +02:00
b7bf26b0d2 Working on modeling panel offset:
- panel offset moved to gSiddon, output image w/ offset are available to reg23
- calibration in settings.ini is a mix of fitting and manual review in SRT
- calibration images reviewed (all: short long AP PA)
- Test with validation dataset is good. However only for IECS2CT2 w/ translations only. Import offset and hidden transform confuse the situation. Unclear if should be used or not when w/o resildual wrt LT is belo 0.3
- registration dialog is modal.'
2023-04-30 23:33:25 +02:00
292032fca2 Major modifications to account for introducing in the calibration paramters the panel center offset:
This include as most important changes:
- itkImageProcessor UpdateProjectionGeometryMeta - SetOriginLPS now includes that offset
- ui_qvtk_handler: change in overlapping of two images. This now use the vtk provided image center which also consider image orientation and allows us to work under no assumption of center at same position between DRT and TOPO
This release was tested on Imaging calibration data. Consistency was good. On Phantom data also good consistency on Correction Vector between SHORT and LONG
2023-04-28 18:51:28 +02:00
6af205e60e ROI implemented - check functionalities on proper dataset 2023-04-17 13:33:18 +02:00
abc594dac3 Implemented unload in imageProcessor. Fixed quite big bug on reloading of patient that kept trasformation matrix of previous alignment 2023-03-22 18:40:48 +01:00
a8c25121d4 CleanUp code of ui_qvtk_handler.cpp. Bye Bye rendering of DRT and TOPO only 2023-03-22 10:10:27 +01:00
7d7dc6010d Solved bug on Translation widget 2023-03-21 14:24:53 +01:00
c4811e32b7 Cleanup of some cout and functioning undo and redo of Corrections 2023-03-21 13:50:18 +01:00
085f8e0900 Added dialogs for approval and Automatic Registration. Added abort of auto registration 2023-02-22 15:09:26 +01:00
d82bd12ef9 Fixed errors in Projecting and visualising Contours and Isocenter when loading RTPlan 2023-01-25 10:51:13 +01:00
34fb002321 Some minor UI changes for testing to MedPhys. User can not change between Data and Reg. Checkerboard and rulers are out. 2023-01-24 17:58:32 +01:00
b9c255760f Merge branch 'ScoutRTUIDevelOptim' into 'ScoutRTUIDevel'
Adding Files for AutoReg

See merge request cpt_bioeng/drt!21
2023-01-23 15:38:07 +00:00
13e49503a7 Adding new files for Automatic Registration 2023-01-23 16:35:14 +01:00
902cc7e00c Merge branch 'ScoutRTUIDevelOptim' into 'ScoutRTUIDevel'
First integration of Automatic Registration is running (on Approve button)....

See merge request cpt_bioeng/drt!20
2023-01-23 15:33:41 +00:00
3af6066e4f First integration of Automatic Registration is running (on Approve button). There is in this commit soem confusion and changes in the DRR writing for testing with Alex 2022-12-21 16:15:58 +01:00
62aee70510 Merge branch 'ScoutRTUInewRender' into 'ScoutRTUIDevel'
Version of Test 10-12-2022

See merge request cpt_bioeng/drt!19
2022-12-12 14:00:05 +00:00
1f72aa4ba5 Added Interpolator for Reslice in DRT ad Topo. Working ok even though there is a discrepancy between visualistaion of single DRT and DRT and TOPO 2022-12-08 11:06:01 +01:00
e304e1c004 Changed to 16 bit for image visualisation 2022-12-06 16:48:08 +01:00
80aecca90c Working version of issue #32. Everything works fine. New settings.ini is noyt uploaded to repo has there is a minor inconsistency in settings on my MAC. Needs to double check modifications to itkImageProcessor (very minor) 2022-11-25 18:59:31 +01:00
42c9360b21 Issue #8. A solution (psiReto) is now in the code. Possibly dirty 2022-11-03 17:22:34 +01:00
92876e8c3a Closing Issue #39. Keyboard arrows for transform are completed for functionalities for both HFS and FFS. N.B. changes to files in itkDTRecon are not doing anything to the library 2022-10-27 10:43:49 +02:00
5735273934 Closing issue #36. Fixed bugs on Manual transformation coloring XYZwidget orange 2022-09-19 11:26:58 +02:00
113dbafd6b Fix bugs on projection filter for contour and ISO on multiple loading.
Clean up fo filter implemented
2022-09-19 10:40:39 +02:00
7717c1fdad Fixed bugs:
- Interpolating all available space in DRT geometry.
 - Isocenter visualisation based on same filter as contours
 - Wrting SOP Class and SOP Instance UID in SRO
2022-09-16 16:53:03 +02:00
12d02d8cbc PLEASE CHECK changes in DRTMetaInformation.cpp. Possible reason for cut of image? 2022-09-13 18:55:56 +02:00
edf28c6a57 Fixed crashed when unloading Scout and fixed unloading of RTPlan 2022-09-13 17:04:13 +02:00