Tag: Sorting

Sorting Images

Sorting Images in DicomObjects is quite different in COM and .NET versions, due to the different structures of the collections which hold them. DicomObjects.NET Sorting is actually trivial, as the DicomImageCollection is derived from the standard generic Collection, and has a constructor which accepts an IEnumerable, so you can use code like this: var collection = new DicomImageCollection(); // read images into collection collection = new DicomImageCollection(from image in collection orderby image.

Continue reading..

Sorting Images in DO.NET

Sorting Images using DicomObjects.NET is slightly different from using the COM version, but the user has more flexibility as we provide an ArrayList wrapper to the DicomImageCollection object so that people can use all ArrayList’s intrinsic methods to arrange the sorting. However, you still need to write your own “Comparer” routine in order to use the “Sort” method of the ArrayList object, and by doing so you can have customized sorting facilities to suit your need.

Continue reading..