[Castor-users] CT reconstruction error

tmerlin Thibaut.Merlin at univ-brest.fr
Wed Jan 3 17:11:37 CET 2024


Hi Hadi,

This error occurs when there is a mismatch between the expected size of 
the binary datafile and its actual size. In this case the actual size is 
a bit larger than the expected size, which is computed using the header 
metadata as the number of events times the size of an event. There must 
be an error either in the datafile itself, or in its description in the 
header. Note that unless you modified the code, the data size for each 
field composing an event must be 4 bytes (uint32 or float).

Hope this helps

Best,
Thibaut M.

PS: Please use the discourse forum for future requests: 
https://castor-project.discourse.group/**
(mailing-list: *castor_project+general-discussions-5 at discoursemail.com*)

On 31/12/2023 10:26, Hadi Rezaei wrote:
> Dear Castor users
> I simulated a CT scanner using GATE and got 180 imageCT (.dat) output 
> projections. I combined them and converted them to '.Cdf" with uint 
> 16. For reconstruction, I used the following command but found the 
> following error.
> I appreciate any guidance.
>
> ./castor-recon -df benchmark_ct_histogram.Cdh -fout classic_test -oit 
> -1 -it 4:10 -dim 80,80,9 -vox 2,2,2.5 -opti MLTR -proj distanceDriven 
> -th 0
> sOutputManager::InitOutputDirectory() -> Output path is 'classic_test'
> castor-recon() -> Launch reconstruction from CASToR version 3.1.1.
> sScannerManager::Initialize() -> From scanner classic
> -------------------------------------------------------------------------------------------------------------------------------------
> ***** iDataFileCT::CheckFileSizeConsistency() -> DataFile size is not 
> consistent with the information provided by the user/datafile !
>   --> Expected size: 3440000
>   --> Actual size: 3600000
>
>       ADDITIONAL INFORMATION ABOUT THE DATAFILE INITIALIZATION
>   --> No information about the kind of events in the data
>   --> No blank correction term in the data
>   --> Scatter correction term is enabled
>   --> Calibration factor value is: 1
> ----------------------------------------------------------------------------------------------------------------------------------------
> ***** vDataFile::InitializeMappedFile() -> A problem occurred while 
> checking file size consistency !
> ***** castor-recon() -> A problem occurred in datafile initialization 
> ! Abort.
> ***** Exit function called. Abort with code 1.
>
> _______________________________________________
> Castor-users mailing list
> Castor-users at lists.castor-project.org
> https://lists.castor-project.org/mailman/listinfo/castor-users
>
> To look for something in the mailing-list archives, use the search box at:
> https://castor-project.org/mailing-list

-- 
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/20240103/b47007fc/attachment.html>


More information about the Castor-users mailing list