Gets a new RasterViewPerspective that results from applying a PlaneOrientation to a given RasterViewPerspective and two given direction cosine vectors.
public static Leadtools.RasterViewPerspective GetNewViewPerspective(Leadtools.RasterViewPerspective viewPerspectiveOriginal,double[] imageOrientationVectors,Leadtools.Dicom.Common.Datatypes.PlaneOrientation po)
Public Overloads Shared Function GetNewViewPerspective( _ByVal viewPerspectiveOriginal As Leadtools.RasterViewPerspective, _ByVal imageOrientationVectors() As Double, _ByVal po As Leadtools.Dicom.Common.Datatypes.PlaneOrientation _) As Leadtools.RasterViewPerspective
public:static Leadtools.RasterViewPerspective GetNewViewPerspective(Leadtools.RasterViewPerspective viewPerspectiveOriginal,array<double>^ imageOrientationVectors,Leadtools.Dicom.Common.Datatypes.PlaneOrientation^ po)
viewPerspectiveOriginal
The input RasterViewPerspective to which the PlaneOrientation will be applied.
imageOrientationVectors
The row and column orientation vectors (or direction cosine vectors) that apply to viewPerspectiveOriginal
po
A PlaneOrientation that is applied to the original RasterViewPerspective
The new RasterViewPerspective that results from having the PlaneOrientation applied.
The input view perspective is define by two values: the original RasterViewPerspective ( viewPerspectiveOriginal), and a row and column orientation vector ( imageOrientationVectors). This method returns the new RasterViewPerspective that results from applying a PlaneOrientation to the input view perspective.
This example does the following:
using Leadtools.Dicom;using Leadtools.Dicom.Common;using Leadtools.Dicom.Common.Extensions;using Leadtools;using Leadtools.Dicom.Common.Linq.BasicDirectory;using Leadtools.Dicom.Common.DataTypes;public void GetNewViewPerspectiveExample(){// Create a new coronal PlaneOrientation that corresponds to a horizontal flipPlaneOrientation poCoronal = new PlaneOrientation();poCoronal.Name = "Coronal or Frontal";// This corresponds to a horizontal flippoCoronal.Top = OrientationAxis.Inferior;poCoronal.Right = OrientationAxis.Right;// This condition is ignoredTagValueOrientationCondition condition = new TagValueOrientationCondition(DicomTag.ImageOrientationPatient, null);poCoronal.Condition = condition;// This specifies a row and column orientation vector that correspond to a coronal slice// Row: (1,0,0)// Col: (0,0,-1)double[] imageOrientationVectors = new double[6] { 1, 0, 0, 0, 0, -1 };// Find the new view perspectiveRasterViewPerspective newViewPerspective = DicomExtensions.GetNewViewPerspective(RasterViewPerspective.TopLeft, imageOrientationVectors, poCoronal);// New view perspective should be BottomLeftMessageBox.Show("newViewPerspective should be BottomLeft\nActual newViewPerspective is " + newViewPerspective.ToString());}
Imports Leadtools.DicomImports Leadtools.Dicom.CommonImports Leadtools.Dicom.Common.ExtensionsImports Leadtools.Dicom.Common.LinqImports Leadtools.Dicom.Common.Linq.BasicDirectoryImports LeadtoolsImports Leadtools.Dicom.Common.DataTypesPublic Sub GetNewViewPerspectiveExample()' Create a new coronal PlaneOrientation that corresponds to a horizontal flipDim poCoronal As PlaneOrientation = New PlaneOrientation()poCoronal.Name = "Coronal or Frontal"' This corresponds to a horizontal flippoCoronal.Top = OrientationAxis.InferiorpoCoronal.Right = OrientationAxis.Right' This condition is ignoredDim condition As TagValueOrientationCondition = New TagValueOrientationCondition(DicomTag.ImageOrientationPatient, Nothing)poCoronal.Condition = condition' This specifies a row and column orientation vector that corresponds to a coronal slice' Row: (1,0,0)' Col: (0,0,-1)Dim imageOrientationVectors As Double() = New Double(5) {1, 0, 0, 0, 0, -1}' Find the new view perspectiveDim newViewPerspective As RasterViewPerspective = DicomExtensions.GetNewViewPerspective(RasterViewPerspective.TopLeft, imageOrientationVectors, poCoronal)' New view perspective should be BottomLeftMessageBox.Show("newViewPerspective should be BottomLeft" & Constants.vbLf & "Actual newViewPerspective is " & newViewPerspective.ToString())End Sub
|
Products |
Support |
Feedback: GetNewViewPerspective(RasterViewPerspective,Double[],PlaneOrientation) Method - Leadtools.Dicom.Common |
Introduction |
Help Version 19.0.2017.6.23
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.