Segment bounds

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Segment bounds

Dzenan Zukic
Hi people,

I have the following code fragment:

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);
    double bounds[6];
    tumorSegment->GetBounds(bounds);
    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();
    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");
    scene->AddNode(corner1);
    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();
    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");
    scene->AddNode(corner2);

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?
Inline image 1

Regards,
Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

pinter

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

Dzenan Zukic
In reply to this post by Dzenan Zukic
I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

Regards

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

pinter
In reply to this post by Dzenan Zukic

The related fixes were done on March 10 and 11 (revs 25780 and 25796). Can you please save the segmentation into file and send it to us?

 

Thanks,

csaba

 

PS: Sorry about the spoofing stuff in the emails. The Queen’s IT people have tried to do some magic recently but apparently failed…

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:31
To: Csaba Pinter <[hidden email]>
Cc: Andras Lasso <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

 

Regards


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

Dzenan Zukic
In reply to this post by Dzenan Zukic
Here it is.

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Wed, Mar 29, 2017 at 4:35 PM, Csaba Pinter <[hidden email]> wrote:

The related fixes were done on March 10 and 11 (revs 25780 and 25796). Can you please save the segmentation into file and send it to us?

 

Thanks,

csaba

 

PS: Sorry about the spoofing stuff in the emails. The Queen’s IT people have tried to do some magic recently but apparently failed…

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:31
To: Csaba Pinter <[hidden email]>
Cc: Andras Lasso <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

 

Regards


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ

tumor2.seg.nrrd (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

pinter
In reply to this post by Dzenan Zukic

Thanks!

 

What representations are present when you do the bounds calculation? Only the labelmap and the closed surface?

 

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:38
To: Csaba Pinter <[hidden email]>
Cc: Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

Here it is.


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:35 PM, Csaba Pinter <[hidden email]> wrote:

The related fixes were done on March 10 and 11 (revs 25780 and 25796). Can you please save the segmentation into file and send it to us?

 

Thanks,

csaba

 

PS: Sorry about the spoofing stuff in the emails. The Queen’s IT people have tried to do some magic recently but apparently failed…

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:31
To: Csaba Pinter <[hidden email]>
Cc: Andras Lasso <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

 

Regards


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

Dzenan Zukic
In reply to this post by Dzenan Zukic
That's right, label map and closed surface:
    vtkSegmentation* tumorSeg = tumorNode->GetSegmentation();
    tumorSeg->CreateRepresentation("Closed surface");

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Wed, Mar 29, 2017 at 4:39 PM, Csaba Pinter <[hidden email]> wrote:

Thanks!

 

What representations are present when you do the bounds calculation? Only the labelmap and the closed surface?

 

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:38
To: Csaba Pinter <[hidden email]>
Cc: Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

Here it is.


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:35 PM, Csaba Pinter <[hidden email]> wrote:

The related fixes were done on March 10 and 11 (revs 25780 and 25796). Can you please save the segmentation into file and send it to us?

 

Thanks,

csaba

 

PS: Sorry about the spoofing stuff in the emails. The Queen’s IT people have tried to do some magic recently but apparently failed…

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:31
To: Csaba Pinter <[hidden email]>
Cc: Andras Lasso <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

 

Regards


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

 



_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: Segment bounds

lasso2

I was able to reproduce the error. I’ll commit a fix today.

Andras

 

From: slicer-devel [mailto:[hidden email]] On Behalf Of Dzenan Zukic
Sent: March 29, 2017 16:43
To: Csaba Pinter <[hidden email]>
Cc: SPL Slicer Devel <[hidden email]>
Subject: Re: [slicer-devel] Segment bounds

 

That's right, label map and closed surface:

    vtkSegmentation* tumorSeg = tumorNode->GetSegmentation();

    tumorSeg->CreateRepresentation("Closed surface");


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:39 PM, Csaba Pinter <[hidden email]> wrote:

Thanks!

 

What representations are present when you do the bounds calculation? Only the labelmap and the closed surface?

 

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:38
To: Csaba Pinter <[hidden email]>
Cc: Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

Here it is.


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:35 PM, Csaba Pinter <[hidden email]> wrote:

The related fixes were done on March 10 and 11 (revs 25780 and 25796). Can you please save the segmentation into file and send it to us?

 

Thanks,

csaba

 

PS: Sorry about the spoofing stuff in the emails. The Queen’s IT people have tried to do some magic recently but apparently failed…

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:31
To: Csaba Pinter <[hidden email]>
Cc: Andras Lasso <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Re: Segment bounds

 

I am using 9fba9356cb94bf291fbfb5ddc233c26d6bedd4a4, from March 17th. JC's commits right after that cause the vtk clone bug, so I stay on that version. Was the fix added before or after that?

 

Regards


Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

On Wed, Mar 29, 2017 at 4:25 PM, Csaba Pinter <[hidden email]> wrote:

Hi Dzenan,

 

We had the exact same bug several weeks ago, which we fixed. If you’re using a Slicer which is not relatively recent (which I very much hope in this one case :) ), please try the latest one.

 

Thanks,

csaba

 

From: Dzenan Zukic [mailto:[hidden email]]
Sent: Wednesday, March 29, 2017 16:19
To: Andras Lasso <[hidden email]>; Csaba Pinter <[hidden email]>; Slicer Developers Mailing List ([hidden email]) <[hidden email]>
Subject: Segment bounds

 

Hi people,

 

I have the following code fragment:

 

    vtkSegment* tumorSegment = tumorSeg->GetSegment(segIDs[0]);

    double bounds[6];

    tumorSegment->GetBounds(bounds);

    vtkMRMLMarkupsFiducialNode* corner1 = vtkMRMLMarkupsFiducialNode::New();

    corner1->AddFiducial(bounds[0], bounds[2], bounds[4], "corner1");

    scene->AddNode(corner1);

    vtkMRMLMarkupsFiducialNode* corner2 = vtkMRMLMarkupsFiducialNode::New();

    corner2->AddFiducial(bounds[1], bounds[3], bounds[5], "corner2");

    scene->AddNode(corner2);

 

corner2 is always in in position [-1, -1, -1], which is not what I expect. What is the proper way to get bounds of a segment?

Inline image 1

 

Regards,

Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

 

 

 


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ