Hi Miri,
it would be better to send all your questions directly to the mailinglist so that other members can also help or profit from the conversation. Regarding your problem, I am not sure what exactly "doesn't work" mean. mitk::FiberBundleX is actually not a filter but a datatype. Does the sample code I sent you compile or are there any errors?

Best,
Peter

On 11.02.2012 21:56, Miri Trope wrote:
Hi Peter,

Regarding this filter which you have suggested: _*mitk::FiberBundleX*_
What I should do in order to make that work?

What I've done:
- installed DiffusionImaging module.
- inserted: #include "mitkFiberBundleX.h"
- tried to add a dependency 'DiffusionImaging' in the CMakeList.txt but it doesn't work.

I guess there are other things which I missed?...

Best Regards,
Miri



On Thu, Feb 2, 2012 at 1:00 PM, Peter Neher <[email protected] <mailto:[email protected]>> wrote:

    Hi Miri,

    to represent fiber tracts we use mitkFiberBundleX. This
    datastructure is simply initialized using a vtkPolyData containing
    all your fiber data.
    Simple example:

    vtkSmartPointer<vtkPolyData>    fiberPolyData =
    vtkSmartPointer<vtkPolyData>::New(); // the input datastructure
    for mitkFiberBundleX
    vtkSmartPointer<vtkCellArray>   fiberContainer =
    vtkSmartPointer<vtkCellArray>::New();
    vtkSmartPointer<vtkPoints>        pointContainer =
    vtkSmartPointer<vtkPoints>::New();

    for (int l=0; l<numlines; l++) // iterate over fibers
    {
        vtkSmartPointer<vtkPolyLine> fiber =
    vtkSmartPointer<vtkPolyLine>::New();
        for (int p=0; p<pointsInLine; p++) // iterate over points in fiber
        {
            vtkIdType id =
    pointContainer->InsertNextPoint(yourPoint);    // add next point
            fiber->GetPointIds()->InsertNextId(id);    // add point id
    to fiber
        }
        fiberContainer->InsertNextCell(fiber);    // add fiber to
    fiber container
    }

    fiberPolyData->SetPoints(pointContainer);
    fiberPolyData->SetLines(fiberContainer);

    mitk::FiberBundleX::Pointer fiberBundle =
    mitk::FiberBundleX::New(fiberPolyData);

    Peter


    On 02.02.2012 07:47, Miri Trope wrote:
    Hi All,

    How I should convert my fibers which is represented in .mat file
    in order to be represented on mitk view?
    i.e., I'd like to view my data as :
    http://www.dkfz.de/de/mbi/images/neuro3.jpg
    Note that my .mat file consists of [n] number of fibers which
    each fiber [i] consists of number of points [j] like this:

    fibers[n]
    |
    |__fiber-i__
                     |
                     |___point-j(x,y,z)



    Please don't hesitate to ask if a further explanation is required ...
    Anyway, any information/ method would be very appreciated!
    Miri

-- Dipl.-Inform. Peter Neher
    German Cancer Research Centre
    (DKFZ, Deutsches Krebsforschungszentrum in der Helmholtz-Gemeinschaft, 
Stiftung des öffentlichen Rechts)
    Division of Medical and Biological Informatics
    Im Neuenheimer Feld 280, D-69120 Heidelberg

    Phone: 49-(0)6221-42-3552, Fax: 49-(0)6221-42-2345
    E-Mail:[email protected]  <mailto:[email protected]>, 
Web:www.dkfz.de  <http://www.dkfz.de>

    The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.


    
------------------------------------------------------------------------------
    Keep Your Developer Skills Current with LearnDevNow!
    The most comprehensive online learning library for Microsoft
    developers
    is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
    MVC3,
    Metro Style Apps, more. Free future releases when you subscribe now!
    http://p.sf.net/sfu/learndevnow-d2d
    _______________________________________________
    mitk-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/mitk-users



--
Dipl.-Inform. Peter Neher
German Cancer Research Centre
(DKFZ, Deutsches Krebsforschungszentrum in der Helmholtz-Gemeinschaft, Stiftung 
des öffentlichen Rechts)
Division of Medical and Biological Informatics
Im Neuenheimer Feld 280, D-69120 Heidelberg

Phone: 49-(0)6221-42-3552, Fax: 49-(0)6221-42-2345
E-Mail: [email protected], Web: www.dkfz.de

The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to