View in #cornerstone3d on Slack
@Leo_Reubelt: can anyone tell me how to separate out pan from the camera focal point, so the value only reflects the slice location?
@Alireza_Sedghi: clarification please
@Leo_Reubelt: i am setting the camera focal point from the slice location or image position patient. i do this because i have a lot of series that have variable spacing. and i have to make the displayed meta data align with the displayed image. and i think the jumpToSlice function assumes equal spacing. if the series is axial, coronal, or sagittal, i can just change the appropriate component of the camera focal point. but if the series is oblique, i would have to set all components of focal point, which i think would remove pan displacement.
or maybe there is some better way of approaching this.
@Alireza_Sedghi: what do you want to do in first place
what is the requirement
@Leo_Reubelt: to move the camera to the slice location or image position patient location but respect existing pan offset.
i think i can project the focal point an the image position patient on the slice plane and just take the differences. that makes sense.
@Alireza_Sedghi: is it in volume viewport or stack viewport
@Leo_Reubelt: it can be either. but generally a volume.
@Alireza_Sedghi: actually you cannot have a volume with irregular spacing
so that is out of question, it will throw an error
@Leo_Reubelt: it didn’t that is how we caught it.
@Alireza_Sedghi: then the spacing is not irregular
@Leo_Reubelt: it is
at least according to image position patient
@Alireza_Sedghi: hmmm
anyway, you can store the viewpresentation and set it after
to restore the pan
.getViewPresentation
.setViewPresentation
@Leo_Reubelt: oh. nice. that is useful.
thansk