Leadtools.Mrc Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MrcSegmentImageOptions Constructor
See Also 
Leadtools.Mrc Namespace > MrcSegmentImageOptions Structure : MrcSegmentImageOptions Constructor



cleanSize
Cleaner size used to remove the noise inside the segmented image. Possible values range from 0 to 10, where 0 means to skip the cleaning stage.
segmentQuality
Value used to determine whether the segment is a picture segment. Possible values range from 0 to 100. Use 0 to set all possible picture segments to 2-bit without loss of a lot of information. Use 100 to set all picture segments to 2 bit only if they are very very close to 2-bit.
colorThreshold
Value used to combine colors. The best value is 25. Values saturate at 443.
backgroundThreshold
Threshold value used to separate image objects from the background. Best values are from 5 to 35.
combineThreshold
Threshold value used to merge segments. Best values are from 75 to 125.
flags
Flags that determine the behavior of the process.
Initializes a new MrcCompressionOptions with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal cleanSize As Integer, _
   ByVal segmentQuality As Integer, _
   ByVal colorThreshold As Integer, _
   ByVal backgroundThreshold As Integer, _
   ByVal combineThreshold As Integer, _
   ByVal flags As MrcSegmentImageFlags _
)
Visual Basic (Usage)Copy Code
Dim cleanSize As Integer
Dim segmentQuality As Integer
Dim colorThreshold As Integer
Dim backgroundThreshold As Integer
Dim combineThreshold As Integer
Dim flags As MrcSegmentImageFlags
 
Dim instance As MrcSegmentImageOptions(cleanSize, segmentQuality, colorThreshold, backgroundThreshold, combineThreshold, flags)
C# 
public MrcSegmentImageOptions( 
   int cleanSize,
   int segmentQuality,
   int colorThreshold,
   int backgroundThreshold,
   int combineThreshold,
   MrcSegmentImageFlags flags
)
C++/CLI 
public:
MrcSegmentImageOptions( 
   int cleanSize,
   int segmentQuality,
   int colorThreshold,
   int backgroundThreshold,
   int combineThreshold,
   MrcSegmentImageFlags flags
)

Parameters

cleanSize
Cleaner size used to remove the noise inside the segmented image. Possible values range from 0 to 10, where 0 means to skip the cleaning stage.
segmentQuality
Value used to determine whether the segment is a picture segment. Possible values range from 0 to 100. Use 0 to set all possible picture segments to 2-bit without loss of a lot of information. Use 100 to set all picture segments to 2 bit only if they are very very close to 2-bit.
colorThreshold
Value used to combine colors. The best value is 25. Values saturate at 443.
backgroundThreshold
Threshold value used to separate image objects from the background. Best values are from 5 to 35.
combineThreshold
Threshold value used to merge segments. Best values are from 75 to 125.
flags
Flags that determine the behavior of the process.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Mrc requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features