Programming with Double and Single Cut Planes and MIP Slabs - Namespace - Raster, Medical, Document Help

Programming with Double and Single Cut Planes and MIP Slabs

The cut-plane feature allows the user to generate a slice that results from cutting through a stack of images. The cut line is represented by a thick colored line with a variety of handles. In order to be able to use the cut line, you must have a stack of images with at least 3 frames. The double cut-plane feature consists of two cut-lines that are always perpendicular to each other.

Creating a cut-plane

To create a cut-plane you must create a MedicalViewerCell with a multi frame image (the number of images must be at least 3 frames). For the most accurate results, you should pass the ImagePosition of each frame.

  1. Create an instance of the MedicalViewerCell
  2. Create a new instance of a MedicalViewerPlaneCutLine or MedicalViewerDoublePlaneCutLine
  3. Add the cut-line or a double cut-line instance to the MedicalViewerReferenceLineProperties.CutLines collection or to the MedicalViewerReferenceLineProperties.DoubleCutLines collection.
  4. Register the Data3DRequested event of the multi frame image cell you created in the first step, and provide 3D information using the Medical3DEngine.Provide3DInformation method.
  5. Register the Data3DFrameRequested event of the multi frame image cell you created in the first step. You will need to provide the program with the requested images from there. For more information on how to create a cut-line image, please refer to Creating Two Slices Out Of An Image Stack Using A Double CutLine.

Handling the cut-line using the mouse

There are 5 handles in the cut-line: two on the far side, two on the near side and one in the middle. The middle handle is the rotation point, which will act as a center point of rotation when the user rotates the cut-line. Also, by clicking and dragging the center point, the cut-plane will be moved. The two handles on the far side are used to rotate the cut-line around the center point. In the case of a double cut-line, the first cut-line will rotate and will keep the second cut-line perpendicular to the first. The two handles on the near side are used to control the thickness of the generated slice. By dragging either one, you will expand the thickness range to view a thicker slice.

By clicking on the cut-line body (the line itself), you can draw the cut-line in a perpendicular manner (imagine the perpendicular line as coming out of the cut-line. This perpendicular line will act as a rail for the cut-line).

The cut-plane properties

You can determine the cell that holds the generated slice through the MedicalViewerPlaneCutLine.DerivativeCell property. In case of the double cut-line, you can determine the cells that hold the generated slices through the MedicalViewerDoublePlaneCutLine.FirstDerivativeCell and SecondDerivativeCell properties.

You can determine the color of the cut-line through the MedicalViewerPlaneCutLine.Color property. In the case of the double cut-line, you can determine the color of the cut-lines through the MedicalViewerDoublePlaneCutLine.FirstLineColor and SecondLineColor properties.

You can change the position of the cut-line or double cut-lines using the Point1 and Point2 properties.

Help Version 20.0.2018.8.13
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document