![JAR search and dependency download from the Maven repository](/logo.png)
jp.co.cyberagent.android.gpuimage.GPUImageThresholdEdgeDetection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gpuimage-library Show documentation
Show all versions of gpuimage-library Show documentation
Image filters for Android with OpenGL (based on GPUImage for iOS)
package jp.co.cyberagent.android.gpuimage;
/**
* Applies sobel edge detection on the image.
*/
public class GPUImageThresholdEdgeDetection extends GPUImageFilterGroup {
public GPUImageThresholdEdgeDetection() {
super();
addFilter(new GPUImageGrayscaleFilter());
addFilter(new GPUImageSobelThresholdFilter());
}
public void setLineSize(final float size) {
((GPUImage3x3TextureSamplingFilter) getFilters().get(1)).setLineSize(size);
}
public void setThreshold(final float threshold) {
((GPUImageSobelThresholdFilter) getFilters().get(1)).setThreshold(threshold);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy