Sort(List<MedicalViewerImageData>,MedicalViewerSortCriteria,MedicalViewerSortSeparationCriteria) Method

Summary

Sorts the input list of data based on various values stored inside them.

Syntax
C#
VB
C++
            public: 
bool Sort(  
   List<MedicalViewerImageData^>^ inputList, 
   MedicalViewerSortCriteria sortCriteria, 
   MedicalViewerSortSeparationCriteria seperateCriteria 
)  

Parameters

inputList
A list of MedicalViewerImageData that will be stored.

sortCriteria
The criteria to follow when sorting the frames.

seperateCriteria
Determines which DICOM tag will be used to separate the input list into multiple lists. <

For example, if you set the enum to echoNumber, then the input list will be checked for those values. Items with an echo number will be put into a list, and items with a different echo number will be put into another list.

Remarks
  • If sortCriteria is set to Acquisition time, then the method will sort the frames based on the AcquisitionTime data. Otherwise, the method will sort the list based on

    • Image position
    • Image orientation
    • Echo number
    • Instance number
    • Frame of reference UID

    For a successful sorting, it is important to have the data properly filled in.

  • If the sort fails for any reason, it returns false.

Example

For an example, refer to MedicalViewerSeriesStack

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly