BilateralSmoothingFilterOptions

Inheritance: java.lang.Object, com.aspose.imaging.imagefilters.filteroptions.FilterOptionsBase

public class BilateralSmoothingFilterOptions extends FilterOptionsBase

خيارات مرشح التنعيم الثنائي.

المنشئات

المنشئالوصف
BilateralSmoothingFilterOptions(int size)ينشئ مثالًا جديدًا من الفئة BilateralSmoothingFilterOptions.
BilateralSmoothingFilterOptions()ينشئ مثالًا جديدًا من الفئة BilateralSmoothingFilterOptions.

الطرق

طريقةالوصف
getSize()يحصل أو يضبط حجم النواة.
setSize(int value)يحصل أو يضبط حجم النواة.
getSpatialFactor()يحصل أو يضبط العامل المكاني.
setSpatialFactor(double value)يحصل أو يضبط العامل المكاني.
getSpatialPower()يحصل أو يضبط القوة المكانية.
setSpatialPower(double value)يحصل أو يضبط القوة المكانية.
getColorFactor()يحصل أو يضبط عامل اللون.
setColorFactor(double value)يحصل أو يضبط عامل اللون.
getColorPower()يحصل أو يضبط قوة اللون.
setColorPower(double value)يحصل أو يضبط قوة اللون.

Example: The following example applies various types of filters to a raster image.

String dir = "c:\\temp\\";

com.aspose.imaging.Image image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح متوسط بحجم مستطيل 5 على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.MedianFilterOptions(5));
    rasterImage.save(dir + "sample.MedianFilter.png");
} finally {
    image.dispose();
}

image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح تنعيم ثنائي الجانب بحجم نواة 5 على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.BilateralSmoothingFilterOptions(5));
    rasterImage.save(dir + "sample.BilateralSmoothingFilter.png");
} finally {
    image.dispose();
}

image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح تمويه غاوسي بنصف قطر 5 وقيمة سيغما 4.0 على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.GaussianBlurFilterOptions(5, 4.0));
    rasterImage.save(dir + "sample.GaussianBlurFilter.png");
} finally {
    image.dispose();
}

image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح غاوس-واينر بنصف قطر 5 وقيمة تمهيد 4.0 على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.GaussWienerFilterOptions(5, 4.0));
    rasterImage.save(dir + "sample.GaussWienerFilter.png");
} finally {
    image.dispose();
}

image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح حركة واينر بطول 5، قيمة تمهيد 4.0 وزاوية 90.0 درجة على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.MotionWienerFilterOptions(10, 1.0, 90.0));
    rasterImage.save(dir + "sample.MotionWienerFilter.png");
} finally {
    image.dispose();
}

image = com.aspose.imaging.Image.load(dir + "sample.png");
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // تطبيق مرشح تعزيز الحدة بحجم نواة 5 وقيمة سيغما 4.0 على الصورة بالكامل.
    rasterImage.filter(rasterImage.getBounds(), new com.aspose.imaging.imagefilters.filteroptions.SharpenFilterOptions(5, 4.0));
    rasterImage.save(dir + "sample.SharpenFilter.png");
} finally {
    image.dispose();
}

BilateralSmoothingFilterOptions(int size)

public BilateralSmoothingFilterOptions(int size)

ينشئ مثالًا جديدًا من الفئة BilateralSmoothingFilterOptions.

Parameters:

معاملنوعالوصف
sizeintحجم النواة.

BilateralSmoothingFilterOptions()

public BilateralSmoothingFilterOptions()

ينشئ مثالًا جديدًا من الفئة BilateralSmoothingFilterOptions.

getSize()

public int getSize()

يحصل أو يضبط حجم النواة.

القيمة: حجم النواة.

Returns: int

setSize(int value)

public void setSize(int value)

يحصل أو يضبط حجم النواة.

القيمة: حجم النواة.

Parameters:

معاملنوعالوصف
valueint

getSpatialFactor()

public double getSpatialFactor()

يحصل أو يضبط العامل المكاني.

القيمة: العامل المكاني.

Returns: double

setSpatialFactor(double value)

public void setSpatialFactor(double value)

يحصل أو يضبط العامل المكاني.

القيمة: العامل المكاني.

Parameters:

معاملنوعالوصف
valuedouble

getSpatialPower()

public double getSpatialPower()

يحصل أو يضبط القوة المكانية.

القيمة: القوة المكانية.

Returns: double

setSpatialPower(double value)

public void setSpatialPower(double value)

يحصل أو يضبط القوة المكانية.

القيمة: القوة المكانية.

Parameters:

معاملنوعالوصف
valuedouble

getColorFactor()

public double getColorFactor()

يحصل أو يضبط عامل اللون.

القيمة: عامل اللون.

Returns: double

setColorFactor(double value)

public void setColorFactor(double value)

يحصل أو يضبط عامل اللون.

القيمة: عامل اللون.

Parameters:

معاملنوعالوصف
valuedouble

getColorPower()

public double getColorPower()

يحصل أو يضبط قوة اللون.

القيمة: قوة اللون.

Returns: double

setColorPower(double value)

public void setColorPower(double value)

يحصل أو يضبط قوة اللون.

القيمة: قوة اللون.

Parameters:

معاملنوعالوصف
valuedouble