> How can I determine the absolute file path of each file
> (DICOM series) in a directory?
I think that I do not understand what the question is...
> I read the directory with
> FL_dir_chooser
What if FL_dir_chooser ? Is that a fltk widget? I didn't think so - is
it perhaps an Fl_File_Chooser in DIRECTORY mode?
In any case, if you have a pathname, you should be able to convert it to
an absolute pathname by using the function:
int fl_filename_absolute(char *to, int tolen, const char *from);
> and vtkDICOMImageReader.
Don't know about vtk...
> My goal is to link the absolute path of an image with the
> value of slider. e.g.
>
> if the slider-value = 1, then the absolute path of this image
> is: / home/csad65/Dektop/Bilder/dicomimag001.dcm
If you have enumerated all the files in the directory, can you not just
step through that list for each file in turn, using the slider value to
index the list?
Or, are you saying that you know the directory name, and you want to add
on the file names in turn?
char *dirp = "/home/csad65/Dektop/Bilder"
char fname[FL_PATH_MAX];
int idx = slider->value();
sprintf(fname, "%s/dicomimag%03d.dcm", idx);
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk