All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blitline.image.functions.Unsharpen Maven / Gradle / Ivy

There is a newer version: 0.17.1
Show newest version
package com.blitline.image.functions;

import org.apache.commons.lang3.Validate;

public class Unsharpen extends AbstractGaussianFunction {
	@Override
	public String getName() {
		return "unsharp_mask";
	}

	@Override
	protected Unsharpen getThis() {
		return this;
	}

	public Unsharpen amount(double amount) {
		Validate.inclusiveBetween(0.0, 1.0, amount);
		params.put("amount", amount);
		return this;
	}
	
	public Unsharpen threshold(double threshold) {
		Validate.inclusiveBetween(0.0, 1.0, threshold);
		params.put("threshold", threshold);
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy