[Dcmlib] 2D -> 3D
Luca Picello
luca.picello at libero.it
Sun Jul 17 09:36:36 CEST 2005
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!!
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]
> *Envoyé :* samedi 16 juillet 2005 20:48
> *À :* Olivier Stern
> *Cc :* 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
>
>Dcmlib at creatis.insa-lyon.fr <mailto:Dcmlib at creatis.insa-lyon.fr>
>
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050717/91bcb785/attachment.html>
More information about the Dcmlib
mailing list