ParameterSettings_Hologic.m 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %% Author: Rodrigo de Barros Vimieiro
  2. % Date: November, 2018
  3. % rodrigo.vimieiro@gmail.com
  4. % =========================================================================
  5. %{
  6. DESCRIPTION:
  7. This is the configuration file for the tomosynthesis acquisition
  8. geometry. This geometry is specified for the Hologic Selenia Dimensions
  9. -----------------------------------------------------------------------
  10. Copyright (C) <2018> <Rodrigo de Barros Vimieiro>
  11. This program is free software: you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation, either version 3 of the License, or
  14. (at your option) any later version.
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. %}
  22. % =========================================================================
  23. %% Physical Parameters Settings
  24. parameter.type = 'hologic';
  25. % Breast voxels density
  26. parameter.nx = 1996; % number of voxels (columns)
  27. parameter.ny = 2457; % number of voxels (rows)
  28. parameter.nz = 78; % number of voxels (slices)
  29. % Detector panel pixel density
  30. parameter.nu = 1664; % number of pixels (columns)
  31. parameter.nv = 2048; % number of pixels (rows)
  32. % Single voxel real size (mm)
  33. parameter.dx = 0.112;
  34. parameter.dy = 0.112;
  35. parameter.dz = 1;
  36. % Single detector real size (mm)
  37. parameter.du = 0.14;
  38. parameter.dv = 0.14;
  39. % X-ray source and detector distances
  40. parameter.DSD = 700; % Distance from source to detector (mm)
  41. parameter.DSO = 597; % Distance from source to the top of object (mm)
  42. parameter.DDR = 0; % Distance from detector to pivot (mm)
  43. parameter.DSR = parameter.DSD - parameter.DDR; % Distance from source to pivot (mm)
  44. parameter.DAG = 25; % Distance of Air Gap (mm)
  45. % Detector and object full real sizes (mm)
  46. parameter.sx = parameter.nx.*parameter.dx;
  47. parameter.sy = parameter.ny.*parameter.dy;
  48. parameter.sz = (parameter.nz.*parameter.dz)+parameter.DAG;
  49. parameter.su = parameter.nu.*parameter.du;
  50. parameter.sv = parameter.nv.*parameter.dv;
  51. % Detector and object Volume grid settings
  52. parameter.xs = (parameter.nx-1:-1:0)*parameter.dx;
  53. parameter.ys = (-(parameter.ny-1)/2:1:(parameter.ny-1)/2)*parameter.dy;
  54. parameter.zs = (0:1:parameter.nz-1)*parameter.dz + parameter.DAG;
  55. parameter.us = (parameter.nu-1:-1:0)*parameter.du;
  56. parameter.vs = (-(parameter.nv-1)/2:1:(parameter.nv-1)/2)*parameter.dv;
  57. % Number of Projections
  58. parameter.nProj = 15;
  59. % Angle settings (Degrees)
  60. parameter.tubeAngle = 15; % Tube Angle
  61. parameter.tubeDeg = linspace(-parameter.tubeAngle/2,parameter.tubeAngle/2,parameter.nProj);
  62. parameter.detAngle = 4.2; % Detector Angle
  63. parameter.detectorDeg = linspace(-parameter.detAngle/2,parameter.detAngle/2,parameter.nProj);
  64. %% General parameters
  65. % Slice range to be saved
  66. parameter.sliceRange = 1:parameter.nz;
  67. % Region of interest (ROI) to store
  68. parameter.iROI = 1:parameter.ny;
  69. parameter.jROI = 1:parameter.nx;
  70. % Bit number quatization
  71. parameter.bitDepth = []; % Load from dicom header