[Dcmlib] 2D -> 3D

Jean-Pierre ROUX jean-pierre.roux at creatis.insa-lyon.fr
Sun Jul 17 17:45:38 CEST 2005


At 9:36 +0200 17/07/05, Luca Picello wrote:
>I've just read latest message I sent and it may be I am still 
>sleeping but my English gets worst and worst... :-(
>however, don't be ashamed: here only a few are English native 
>speakers but we all need it (to try at least) to communicate being 
>an international ML :-)
>here my sources to search all the files in a directory.
>it works with Borland C++ Builder only but if you use APIs, in 
>windows you can use findfirst/findnext from dir.h or FindFirstFile 
>from winbase.h, it is exactly the same. don't know in *nix ;-)
>
>  TSearchRec sr;
>  int iAttributes = 0;
>
>  AnsiString folder;
>  folder = dicom_folder;
>  folder = folder + "\\*";
>
>  dicom_reader->RemoveAllFileName();
>  dicom_reader->AllowLookupTableOff();
>
>  if (FindFirst(folder, iAttributes, sr) == 0)
>  {
>    do {
>      char newFileDcm[MAX_PATH];
>      strcpy( newFileDcm, dicom_folder );
>      strcat( newFileDcm, "\\" );
>      strcat( newFileDcm, sr.Name.c_str() );
>      dicom_reader->AddFileName( newFileDcm );
>    } while (FindNext(sr) == 0);
>    FindClose(sr);
>  }
>  else
>    return;
>
>Please note that here I do not order files in any way. I did order 
>via the std::map class due of it's code writing speed but it's 
>wrong. Look for recent emails from JP. He is doing the right job!!


==> I commited the stuff this morning.
Have a look, on the website, at 'News'.
I added a few lines to explain how to use it.
- No problem with Windows/Linux
- The files are sorted according to their position (or image nimber, 
if position not found)
JP

>
>hope to be helpful,
>Luca
>
>
>
>Olivier Stern wrote:
>
>>Hello,
>>
>>
>>
>>I ve seen that you made a piece of code that takes all the files in 
>>a directory. I'll have to do it in a few moment and for the moment 
>>I have no idea how to do it. (My knowledges of c++ are basic). 
>>Could you copy me the few lines to search all the files in a 
>>directory ?
>>
>>
>>
>>Thx a lot,
>>
>>
>>
>>            Olivier
>>
>>
>>
>>
>>De : Luca Picello 
>>[<mailto:luca.picello at libero.it>mailto:luca.picello at libero.it]
>>Envoyé : samedi 16 juillet 2005 20:48
>>À : Olivier Stern
>>Cc : <mailto:dcmlib at creatis.insa-lyon.fr>dcmlib at creatis.insa-lyon.fr
>>Objet : Re: [Dcmlib] 2D -> 3D
>>
>>
>>
>>hello Oliver,
>>due to what I can understand (I am Italian ;-) ) could you 
>>translate to English for better mine and others understanding 
>>please?
>>I am very interested to this subject
>>
>>thank you,
>>Luca
>>
>>
>>Olivier Stern wrote:
>>
>>Bonjour,
>>
>>
>>
>>Je me demandais si il y avait une classe qui transformait une série 
>>de slices en un volume 3D (si c'est réalisable) où tout du moins 
>>comment faireŠ Cette question a certainement du être posée, mais en 
>>survolant les archives je n'ai pas trouvé de messages 
>>correspondants. Dans un même ordre d'idée, comment affiche-t-on un 
>>volume ? Avec vtk ? Je n'arrive pas à comprendre comment on peut 
>>voir l'intérieur du volume.
>>
>>
>>
>>Merci,
>>
>>
>>
>>            Olivier
>>
>>
>>
>>
>>
>>
>>
>>
>>_______________________________________________
>>Dcmlib mailing list
>><mailto:Dcmlib at creatis.insa-lyon.fr>Dcmlib at creatis.insa-lyon.fr
>><http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib>http://www. 
>>creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>>
>>
>>
>
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib

  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
								   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4373 bytes
Desc: not available
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050717/8ef6219b/attachment.bin>


More information about the Dcmlib mailing list