BlobSplittingParams

Description

This structure contains parameters for splitting region into blobs.

Structure fields and default values (if defined) are described below:

  • RegionConnectivity Connectivity - Type of connectivity used for splitting region into blobs
  • int MinArea - Minimal area of a resulting blob
  • int MaxArea - Maximal area of a resulting blob
  • bool RemoveBoundaryBlobs - Flag indicating whether blobs on border of region should be removed
struct BlobSplittingParams
{
	RegionConnectivity	Connectivity;
	int					MinArea;
	int					MaxArea;
	bool				RemoveBoundaryBlobs;


	RegionConnectivity Connectivity( void ) const	{ return Connectivity;			};
	int MinArea( void ) const						{ return MinArea;				};
	int MaxArea( void ) const						{ return MaxArea;				};
	bool RemoveBoundaryBlobs( void ) const			{ return RemoveBoundaryBlobs;	};

	bool operator == ( const avl::BlobSplittingParams& rhs ) const
	{
		return Connectivity == rhs.Connectivity && 
			MinArea == rhs.MinArea && 
			MaxArea == rhs.MaxArea && 
			RemoveBoundaryBlobs == rhs.RemoveBoundaryBlobs;
	}

	bool operator != ( const avl::BlobSplittingParams& rhs ) const
	{
		return !(operator==(rhs));
	}

};