[Paraview-developers] Read Image Sequence (not as time series)
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Tue Sep 2 13:11:28 EDT 2014
No, I am not sure if the current AnalizeNIfTI plugin supports reading
image stacks.
On Tue, Sep 2, 2014 at 1:04 PM, Frank TT <frank.tt at einseinself.org> wrote:
> Thx. I'll try it.
>
> I don't need my own plugin. Your suggestion looks like it's possible to
> try this with the existing AnalizeNIfTI plugin?
> (I just want to make a 3D volume out of a stack of 2D foo%03d.nii
> files.)
>
> Frank
>
>
> On Tue, 2014-09-02 at 10:47 -0400, Utkarsh Ayachit wrote:
>> Frank,
>>
>> If you're writing your own reader, I'd suggesting adding
>> AddFileName(), RemoveAllFileNames() methods to your class and then
>> using the following property for your XML.
>>
>> <StringVectorProperty
>> clean_command="RemoveAllFileNames"
>> command="AddFileName"
>> name="FileName"
>> number_of_elements="1"
>> panel_visibility="never"
>> repeat_command="1">
>> <FileListDomain name="files" />
>> <Documentation>The list of files to be read by the
>> reader.</Documentation>
>> </StringVectorProperty>
>>
>> The "repeat_command" is the thing that'll tell ParaView that this
>> property can take an entire file list. Then you're free in you C++
>> code to arrange the files in whichever order you deem fit and process
>> them.
>>
>> Utkarsh
>>
>>
>> On Tue, Sep 2, 2014 at 10:08 AM, Frank tt <frank.tt at einseinself.org> wrote:
>> > Hi Utkarsh,
>> >
>> > I use the AnalizeNIfTI plugin.
>> >
>> > Actually I'm trying to write an own plugin based on the AnalizeNIfTI
>> > plugin. I'm a little bit confused with this and other file readers. I
>> > know some file reades as they get something like a
>> > 'std::vector<std::string>' including a list of the files (choosen from
>> > the open file dialog).
>> > But here the readers have 'this->GetFileName()'. When I'm following
>> > that, im comming over the Analize header to
>> > VTK/IO/Image/vtkImageReader2.h:
>> >
>> > 062 // Description:
>> > 063 // Specify a list of file names. Each file must be a single slice,
>> > 064 // and each slice must be of the same size. The files must be in
>> > the
>> > 065 // correct order.
>> > 066 // Use SetFileName when reading a volume (multiple slice), since
>> > 067 // DataExtent will be modified after a SetFileNames call.
>> > 068 virtual void SetFileNames(vtkStringArray *);
>> > 069 vtkGetObjectMacro(FileNames, vtkStringArray);
>> > […]
>> > 246 vtkStringArray *FileNames;
>> > 247
>> > 248 char *InternalFileName;
>> > 249 char *FileName;
>> >
>> >
>> > I it correct that '*FileNames' include the list from the open file
>> > dialog? And can I work with it in my plugin? E.g.:
>> >
>> > vtkStringArray * inputArray;
>> > inputArray = this->GetFileNames();
>> >
>> > I'm actually trying to get my mind in the code, so I'm sorry for some
>> > stupid questions.
>> >
>> >
>> > Greetings
>> > Frank
>> >
>> >
>> >
>> >
>> > On Tue, 2014-09-02 at 08:47 -0400, Utkarsh Ayachit wrote:
>> >> Frank,
>> >>
>> >> Are you using the AnalyzeNIfTIIO plugin or are you using the builtin
>> >> version (which is coming from the VisItBridge) for the NifTI files?
>> >>
>> >> Utkarsh
>> >>
>> >> On Tue, Sep 2, 2014 at 3:28 AM, Frank tt <frank.tt at einseinself.org> wrote:
>> >> > Hi,
>> >> >
>> >> > I'm Frank and new in developing ParaView.
>> >> > My Setting is a client and a server. The server is image processing and
>> >> > data server.
>> >> > I have a huge stack of NIfTI files (*.nii). Every file is a slice of a
>> >> > volume (similar to DICOM).
>> >> > When I try to load a group of NIfTI files, every file will be loaded as
>> >> > one data set.
>> >> >
>> >> > Well, I want to write a file reader plugin, where I all selected files
>> >> > (in alpha-num order) will be loaded as one volume.
>> >> > I did a look at the example plugins and the paraview file reader
>> >> > plugins.
>> >> >
>> >> > I've read in the paraview mailing list archive [1] and I think the
>> >> > "FileSeriesReaderProxy" tag in the ServerManager xml won't work for me.
>> >> > I also know about the ITK solution [2] to convert the data first. I
>> >> > think this won't work in my setup, because I have limited compiling
>> >> > possibilities on the server (where the data is.)
>> >> >
>> >> > I stuck to get started. Maybe someone can help me.
>> >> >
>> >> > Greetings
>> >> >
>> >> > Frank
>> >> >
>> >> >
>> >> > [1] http://www.paraview.org/pipermail/paraview/2009-January/010621.html
>> >> > [2] http://www.itk.org/Wiki/ITK/Examples/IO/VolumeFromSlices
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Paraview-developers mailing list
>> >> > Paraview-developers at paraview.org
>> >> > http://public.kitware.com/mailman/listinfo/paraview-developers
>> >
>> >
>
>
More information about the Paraview-developers
mailing list