Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Sep 16, 2023
1 parent 05a2145 commit e550e5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions GaelO2/app/Jobs/JobRadiomicsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ public function handle(DicomStudyRepositoryInterface $dicomStudyRepositoryInterf
$downloadedFilePathCT = tempnam(ini_get('upload_tmp_dir'), 'TMP_Inference_');
$orthancService->getZipStreamToFile([$orthancSeriesIdCt], fopen($downloadedFilePathCT, 'r+'));

$idPT = $gaelOProcessingService->createDicom($downloadedFilePathPT);
$idCT = $gaelOProcessingService->createDicom($downloadedFilePathCT);
$gaelOProcessingService->createDicom($downloadedFilePathPT);
$gaelOProcessingService->createDicom($downloadedFilePathCT);

$idPT = $gaelOProcessingService->createSeriesFromOrthanc($orthancSeriesIdPt);
$idCT = $gaelOProcessingService->createSeriesFromOrthanc($orthancSeriesIdCt);

$inferencePayload = [
'idPT' => $idPT,
Expand Down
2 changes: 1 addition & 1 deletion GaelO2/app/Jobs/QcReport/SeriesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private function getPreviewType(): ImageType
'1.2.840.10008.5.1.4.1.1.2', '1.2.840.10008.5.1.4.1.1.2.1', '1.2.840.10008.5.1.4.1.1.20',
'1.2.840.10008.5.1.4.1.1.128', '1.2.840.10008.5.1.4.1.1.130', '1.2.840.10008.5.1.4.1.1.128.1'
];

#TODO : Si une seule instance faire l'api d'orthanc
if ($this->instanceReport != null && $this->instanceReport->numberOfFrames > 1) {
return ImageType::MULTIFRAME;
} else if (in_array($this->SOPClassUID, $mosaicIDs)) {
Expand Down

0 comments on commit e550e5b

Please sign in to comment.