LEADTOOLS Support
General
General Questions
How Set Statistical Analysis in (Axial,Sagittal & Coronal)
#1
Posted
:
Sunday, June 14, 2015 9:41:15 PM(UTC)
Groups: Registered
Posts: 16
Dear i'm using leadtools v18 Trial, I need to get Statistical Analysis (Mean,Max,Min,Pixel Count & SD) in (Axial,Sagittal & Coronal) when we use Eclipse or Rectangle Annotation.
#2
Posted
:
Tuesday, June 16, 2015 6:38:02 AM(UTC)
Groups: Registered
Posts: 256
Anil,
You should not be using v18 eval. If you still haven't purchased our toolkit, make sure to download the free evaluation of v19 and test with it.
You can use the StatisticsInformationCommand of Leadtools.ImageProcessing.Effects Namespace to get mean, median, standard deviation, min value , max value and pixel
count etc.
This function works with regions so can do this as follows:
1- Get the Axial,Sagittal or Coronal frames using GetMPRInformation()
2- Then using RasterImage.AddRectangleToRegion() or RasterImage.AddElipseToRegion() specify the area you want to get the statistical information.
3- Apply StatisticsInformationCommand on the image.
The following code shows how to get the first image for the axial frame:
======================
Medical3DControl control3D = (Medical3DControl)_viewer.Cells[0];
Medical3DMPRInfo axialInfo = control3D.ObjectsContainer.Objects[0].GetMPRInformation(Medical3DMPRPlaneType.Axial, 0);
axialInfo.Image.AddRectangleToRegion(null, new LeadRect(10, 10, 30, 30), RasterRegionCombineMode.And);
StatisticsInformationCommand cmd = new StatisticsInformationCommand();
cmd.Channel = RasterColorChannel.Master;
cmd.Start = 0;
cmd.End = 255;
cmd.Run(axialInfo.Image);
======================
LEADTOOLS Support
General
General Questions
How Set Statistical Analysis in (Axial,Sagittal & Coronal)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.