public double RoiMean { get; set; }
@property (nonatomic, assign) double roiMean
public double getRoiMean();
public void setRoiMean(
double doubleValue
);
RoiMean # get and set (RasterOverlayAttributes)
The average value of the pixels in the Region Of Interest.
For more information, refer to "Overlay Plane Module Attributes" in the DICOM standard and Overlay Overview.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Core;
using Leadtools.ImageProcessing.Color;
using Leadtools.Dicom;
using Leadtools.Drawing;
using Leadtools.Controls;
using Leadtools.Svg;
public void DispalyDicomOverlayAttributes()
{
DicomEngine.Startup();
DicomDataSet dataSet = new DicomDataSet();
dataSet.Load(Path.Combine(LEAD_VARS.ImagesDir, "DICOM", "overlay.dcm"), DicomDataSetLoadFlags.LoadAndClose);
RasterOverlayAttributes attributes = dataSet.GetOverlayAttributes(0);
Console.WriteLine($"ActivationLayer: {attributes.ActivationLayer}");
Console.WriteLine($"BitsAllocated: {attributes.BitsAllocated}");
Console.WriteLine($"Rows: {attributes.Rows}");
Console.WriteLine($"Columns: {attributes.Columns}");
Console.WriteLine($"Description: {attributes.Description}");
Console.WriteLine($"FramesInOverlay: {attributes.FramesInOverlay}");
Console.WriteLine($"ImageFrameOrigin: {attributes.ImageFrameOrigin}");
Console.WriteLine($"Label: {attributes.Label}");
Console.WriteLine($"RoiArea: {attributes.RoiArea}");
Console.WriteLine($"RoiMean: {attributes.RoiMean}");
Console.WriteLine($"RoiStandardDeviation: {attributes.RoiStandardDeviation}");
Console.WriteLine($"Type: {attributes.Type}");
Console.WriteLine($"Subtype: {attributes.Subtype}");
Console.WriteLine($"UseBitPlane: {attributes.UseBitPlane}");
dataSet.Dispose();
DicomEngine.Shutdown();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images";
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document