public HImage Process(HImage image)
        {
            HObject enhancedImage = null;
            HObject region        = null;

            HDevelopExport.Singletone.EnhanceEdgeAreaByBinaryThresholdWithMean(
                image,
                out enhancedImage,
                out region,
                MeanMaskWidth,
                MeanMaskHeight,
                EmpWidth,
                EmpHeight,
                EmpFactor,
                EdgeAreaLightDark.ToHalconString(),
                AreaMin,
                AreaMax,
                ClosingWidth,
                ClosingHeight,
                DilationRadius
                );

            region.Dispose();

            return(new HImage(enhancedImage));
        }
Exemple #2
0
        public HImage Process(HImage image)
        {
            HObject enhancedImage = null;
            HObject region        = null;

            HDevelopExport.Singletone.EnhanceEdgeAreaByScaleDual(
                image,
                out enhancedImage,
                out region,
                MeanMaskWidth,
                MeanMaskHeight,
                EdgeAreaLightDark.ToHalconString(),
                SelectAreaMin,
                SelectAreaMax,
                EdgeLightDark.ToHalconString(),
                ScaleAdd1,
                EmpMaskWidth,
                EmpMaskHeight,
                EmpFactor,
                ScaleAdd2,
                OpeningWidth,
                OpeningHeight,
                ClosingWidth,
                ClosingHeight
                );

            region.Dispose();

            return(new HImage(enhancedImage));
        }