View Issue Details

IDProjectCategoryView StatusLast Update
0003153Slicer4Core: Base Codepublic2014-03-06 04:58
Reportermanhnguyen Assigned Tojcfr  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionSlicer 4.2.0 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.3.0 
Summary0003153: rotate bounding box
Description

Dear Slicer Developer,

is there anyway to rotate the bounding box?
sincerely,

Tat Manh Nguyen

TagsNo tags attached.

Activities

jcfr

jcfr

2013-06-10 07:29

administrator   ~0008731

Hi Tat,

Consider reading the following discussion [1].

Hth
Jc

[1] http://slicer-users.65878.n3.nabble.com/quot-spin-the-3D-view-quot-rotation-speed-td3956405.html

manhnguyen

manhnguyen

2013-06-11 02:37

reporter   ~0008738

Dear jcfr,

I'm sorry not to be clear, I'm using C++ and because the image scan from MRI has a bit different angle, and I recognize that the bounding box doesn't rotate with the slices. that's why I want to rotate the bounding box as same as the slices. (Note, in order to rotate as the data i got, I use the SetIJKToRASMatrix)

jcfr

jcfr

2013-06-11 06:00

administrator   ~0008739

Last edited: 2013-06-11 06:02

Did you try to click on the "fit-to-data" button as illustrated in the screenshot ? If that work, you would have to trigger the same action from cpp.

2013-06-11 06:00

 

Screenshot-3.png (12,659 bytes)
Screenshot-3.png (12,659 bytes)

2013-06-11 06:02

 

Screenshot-4.png (7,799 bytes)
Screenshot-4.png (7,799 bytes)
manhnguyen

manhnguyen

2013-06-11 06:23

reporter   ~0008740

Dear jcfr,
I have already tried "fit-to-data" but it doesn't get what I want. as I have attach a screenshot(there is some bug in my computer, I will upload the image in a minute), you can see that the box doesn't warped completely around the image data. My goal at this moment is make the bounding box fit the data. (Note: not the the data fit the bounding box)

2013-06-11 06:34

 

Untitled.png (186,357 bytes)
Untitled.png (186,357 bytes)
jcfr

jcfr

2013-07-31 20:07

administrator   ~0009315

Hi,

Would it be possible to provide an annotated screenshot illustrating what you mean by "box doesn't warped completely around the image data" ?

Thanks
Jc

2013-07-31 22:52

 

explanation.png (323,911 bytes)
explanation.png (323,911 bytes)
manhnguyen

manhnguyen

2013-07-31 22:55

reporter   ~0009325

Dear jcfr,

As you can see in the explanation.png image, no matter what I try to do, it keep letting empty space there. What I want is the bounding box to fit with all three slices perfectly, which means the bounding box must be rotated and scaled to fit the box

Sincerely,

Tat Manh Nguyen

jcfr

jcfr

2013-08-01 07:53

administrator   ~0009330

Within Slicer, an axis aligned minimum bounding box [1], it seems what you would like is Arbitrarily oriented minimum bounding box [2]

If this is the case, I suggest you close this issue and create a feature request that we would target for Slicer 4.4.

The VTK class internally used (vtkBoundingBox) implement a 3D axis aligned bounding box [3], it means this class would have to be extended to propose an option allowing to do non-aligned bounding box.

If you would like to contribute a patch to the VTK library, you could look at [4] for more details.

In your case, you could probably try to apply a transform to your data to align them ?

[1] http://en.wikipedia.org/wiki/Minimum_bounding_box#Axis-aligned_minimum_bounding_box

[2] http://en.wikipedia.org/wiki/Minimum_bounding_box#Arbitrarily_oriented_minimum_bounding_box

[3] http://www.vtk.org/doc/nightly/html/classvtkBoundingBox.html#details

[4] http://www.vtk.org/Wiki/VTK/Git/Develop

manhnguyen

manhnguyen

2013-08-01 07:57

reporter   ~0009332

Thank you jcfr,

I understand now, and i will close this issue.

jcfr

jcfr

2014-03-06 04:56

administrator   ~0010822

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2013-06-10 03:43 manhnguyen New Issue
2013-06-10 03:43 manhnguyen Status new => assigned
2013-06-10 03:43 manhnguyen Assigned To => jcfr
2013-06-10 07:24 jcfr Target Version => Slicer 4.3.0
2013-06-10 07:29 jcfr Note Added: 0008731
2013-06-10 07:29 jcfr Status assigned => closed
2013-06-10 07:29 jcfr Resolution open => no change required
2013-06-10 07:29 jcfr Fixed in Version => Slicer 4.3.0
2013-06-11 02:37 manhnguyen Note Added: 0008738
2013-06-11 02:37 manhnguyen Status closed => feedback
2013-06-11 02:37 manhnguyen Resolution no change required => reopened
2013-06-11 06:00 jcfr Note Added: 0008739
2013-06-11 06:00 jcfr File Added: Screenshot-3.png
2013-06-11 06:02 jcfr File Added: Screenshot-4.png
2013-06-11 06:02 jcfr Note Edited: 0008739
2013-06-11 06:23 manhnguyen Note Added: 0008740
2013-06-11 06:34 manhnguyen File Added: Untitled.png
2013-07-31 20:07 jcfr Note Added: 0009315
2013-07-31 20:07 jcfr Target Version Slicer 4.3.0 => Slicer 4.4.0
2013-07-31 22:52 manhnguyen File Added: explanation.png
2013-07-31 22:55 manhnguyen Note Added: 0009325
2013-08-01 07:53 jcfr Note Added: 0009330
2013-08-01 07:53 jcfr Status feedback => resolved
2013-08-01 07:53 jcfr Resolution reopened => fixed
2013-08-01 07:57 manhnguyen Note Added: 0009332
2014-03-06 04:56 jcfr Note Added: 0010822
2014-03-06 04:58 jcfr Status resolved => closed