[Castor-users] Find help, please

tmerlin Thibaut.Merlin at univ-brest.fr
Tue Jun 4 10:59:46 CEST 2019


Dear Tianquan,


On 04/06/2019 07:03, 王天泉 wrote:
> Dear CasTor users,
>    I had a problem when I used the castor to reconstruct image. here are the steps.
>
>    1.  define the system and simulation, cylindricalPET, Root files.
>
>    2.  a) by "castor-PetScannerLutEx -alias ini.mac", generating the "ini.mac.lut" and "ini.mac.hscan" files;
>        b) by  "castor-GATEMacToGeom -m ini.mac -o out", generating the "out.geom" file.

  You don't really need to use these two binaries in your case. You can 
just use /castor-GATERootToCastor/ (see below)

- /castor-PetScannerLutEx/ is just an example code to help generating a 
LUT for castor for a specific system. The geometrical characteristics of 
the new system must be implemented directly in the code. For GATE you 
have more automatic tools.

- /castor-GATEMacToGeom/ does generate the castor geometry file (.geom) 
for your GATE simulation, but you can do it directly with 
/castor-GATERootToCastor/ as described below.


>   
>    3. by "castor-GATERootToCastor -i ../output/out.root -o ../output/w -m ini.mac  -s ~/progs/Castor/castor_v2.0.3/config/scanner/ini.mac.lut" to generate files, but I always got the problem, which were
>      "0 : ini.mac
>      ***** sScannerManager::FindScannerSystem() -> Scanner '/home/jack/progs/Castor/castor_v2.0.3/config/scanner/ini.mac.lut' is not known in the scanner repository. Please provide a LUT/generic file for this scanner in the scanner repository in: /home/jack/progs/Castor/castor_v2.0.3/config/scanner/"
>
>    Then I also tried the '.geom' files, but I also had the same problem.
>    What should I do to solve it? Thanks for your help!
>    Your Sincerely
>     Tianquan
> _______________________________________________
> Castor-users mailing list
> Castor-users at lists.castor-project.org
> http://lists.castor-project.org/listinfo/castor-users

You should add the /-geo/ option to your command-line which will 
automatically generate the geometry file in the scanner repository 
(basically doing the same as castor-GATEMacToGeom). You should not 
provide the path to your system file to the /-s /option, but the alias 
of the system (the file name). It will look for this file in the scanner 
repository (config/scanner). So you can either:

- Just use "/-s my_scan/" in your command-line, it will look for a file 
called "/my_scan.geom/" or "/my_scan.hscan/" in the scanner repository. 
In your case, you already have an /out.geom/ file corresponding to your 
geometry, so you can use "/-s out/"

- (recommended) Add /-geo / to your command-line, it will generate the 
geometry file using the name provided with the /-s /option.


Cheers,

Thibaut


-- 
Thibaut MERLIN -- PhD

Docteur en Imagerie Médicale au Laboratoire de Traitement de l'Information Medicale (LaTIM - INSERM UMR 1101)
Institut Brestois de recherche en Bio-Santé (IBRBS)
12 Avenue Foch, 29200 Brest, FRANCE
Tel: 06.75.12.24.90

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.castor-project.org/pipermail/castor-users/attachments/20190604/cf3b847a/attachment.html>


More information about the Castor-users mailing list