[Dcmlib] Re: Images axial acquisition order
Luca Picello
luca.picello at libero.it
Wed Jul 20 20:25:48 CEST 2005
bonjour à tout le monde ^^
with today's CVS the AnonymizeNoLoad.exe does not work anymore :-(
-----------------------------------------------------------------
Z:\gdcm.bin.dll.debug\bin>AnonymizeNoLoad.exe -dirin=anydir
Either 'filein' or 'dirin' must be present;
Not both
-----------------------------------------------------------------
adding some debug code I see both fileName and dirName are set to NULL...
----
JP, did you read my previous email? any comment? I'd really like to know
what your opinion is...
Just another quick information: manually apply of matrix transformations
to vtkGdcmReader does not work...
don't know how it works: it should be a macro of vtkImageReader... (
SetTransform I mean )
and working exactly like in vtkVolume16Reader... or not?
here's my code:
dicom_reader = vtkGdcmReader::New();
dicom_reader->RemoveAllFileName();
dicom_reader->AllowLookupTableOff();
gdcm::SerieHelper *sh = new gdcm::SerieHelper();
sh->SetDirectory(dicom_folder, true);
gdcm::FileList *l = sh->GetFirstCoherentFileList();
sh->OrderFileList(l);
dicom_reader->SetCoherentFileList(l);
double matrixSI[16] = {1,0, 0,0, 0, 0, 1,0, 0,-1,0,0, 0,0,0,1};
double matrixIS[16] = {1,0, 0,0, 0, 0,-1,0, 0,-1,0,0, 0,0,0,1};
double matrixLR[16] = {0,0,-1,0, 0,-1, 0,0, 1, 0,0,0, 0,0,0,1};
double matrixRL[16] = {0,0, 1,0, 0,-1, 0,0, 1, 0,0,0, 0,0,0,1};
vtkTransform* si = vtkTransform::New();
si->SetMatrix(matrixSI);
vtkTransform* is = vtkTransform::New();
is->SetMatrix(matrixIS);
vtkTransform* ap = vtkTransform::New();
ap->Scale(1, -1, 1);
vtkTransform* pa = vtkTransform::New();
pa->Scale(1, -1, -1);
vtkTransform* lr = vtkTransform::New();
lr->SetMatrix(matrixLR);
vtkTransform* rl = vtkTransform::New();
rl->SetMatrix(matrixRL);
vtkTransform* order[6] = { ap, pa, si, is, lr, rl };
dicom_reader->SetTransform( rl );
dicom_reader->Update();
Thank you all,
Luca
Jean-Pierre ROUX wrote:
>> This is a multi-part message in MIME format.
>> --------------030207070300090600060302
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> Content-Transfer-Encoding: 8bit
>>
>> Unfortunately I can't send them all because I have to anonymize each
>> file manually (or at least create a script/program) and I can't stay on
>> chair too much due of a recent incident... :-(
>
>
> In the CVS version of gdcm, just do :
> AnonymizeNoLoad dirname=yourDirectoryNameWithimages
> it will anonymize the whole stuff.
> JP
>
>> I send you just one at this time, hope it's enought. I promise I'll
>> upload them asap.
>>
>> Luca
>>
>>
>>
>> Jean-Pierre Roux wrote:
>>
>> > Emmanuel Olart wrote:
>> >
>> >> Hi all,
>>
>>
>> WARNING: The remainder of this 352K message has not been
>> transferred. Turn on the "Fetch" button in the icon bar and check
>> mail again to get the whole thing.
>
>
> Jean-Pierre ROUX
> CREATIS - CNRS UMR 5515, INSERM U 630
> Laboratoire de Radiologie Experimentale
> Hopital Cardiologique
> 28 Avenue du Doyen LEPINE
> B.P. Lyon-Montchat
> 69394 Lyon Cedex 03
>
> Tel : (+33) 04 72 35 74 12
> Fax : (+33) 04 72 68 49 16
> URL : http://www.creatis.univ-lyon1.fr
> e-mail : jpr at creatis.univ-lyon1.fr
> .
>
More information about the Dcmlib
mailing list