• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java GPUImageSharpenFilter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter的典型用法代码示例。如果您正苦于以下问题:Java GPUImageSharpenFilter类的具体用法?Java GPUImageSharpenFilter怎么用?Java GPUImageSharpenFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GPUImageSharpenFilter类属于jp.co.cyberagent.android.gpuimage包,在下文中一共展示了GPUImageSharpenFilter类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RGBAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGaussianBlurFilter) {
        adjuster = new GaussianBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageCrosshatchFilter) {
        adjuster = new CrosshatchBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBulgeDistortionFilter) {
        adjuster = new BulgeDistortionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGlassSphereFilter) {
        adjuster = new GlassSphereAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHazeFilter) {
        adjuster = new HazeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSphereRefractionFilter) {
        adjuster = new SphereRefractionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSwirlFilter) {
        adjuster = new SwirlAdjuster().filter(filter);
    } else if (filter instanceof GPUImageColorBalanceFilter) {
        adjuster = new ColorBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageLevelsFilter) {
        adjuster = new LevelsMinMidAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBilateralFilter) {
        adjuster = new BilateralAdjuster().filter(filter);
    } else if (filter instanceof GPUImageTransformFilter) {
        adjuster = new RotateAdjuster().filter(filter);
    }
    else {

        adjuster = null;
    }
}
 
开发者ID:ChillingVan,项目名称:android-openGL-canvas,代码行数:70,代码来源:FilterAdjuster.java


示例2: onCreate

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    requestWindowFeature(Window.FEATURE_NO_TITLE);

    setContentView(R.layout.activity_realtime_camera_preview);

    mSurfaceView = (GLSurfaceView) findViewById(R.id.gl_surface_view);
    mGPUImage = new GPUImage(this);
    mGPUImage.setGLSurfaceView(mSurfaceView);

    mSeekBar = (SeekBar) findViewById(R.id.seekBar1);
    mSeekBar.setMax(100);
    mSeekBar.setEnabled(false);
    mSeekBar.setOnSeekBarChangeListener(this);

    // セピア
    mSepia = new GPUImageSepiaFilter();
    // 白黒
    mGray = new GPUImageGrayscaleFilter();
    // シャープ
    // -4.0 to 4.0
    mSharp = new GPUImageSharpenFilter();
    // エッジ
    // 0.0 to 5.0
    mEdge = new GPUImageSobelEdgeDetection();

    findViewById(R.id.sepia).setOnClickListener(this);
    findViewById(R.id.gray).setOnClickListener(this);
    findViewById(R.id.sharp).setOnClickListener(this);
    findViewById(R.id.edge).setOnClickListener(this);
}
 
开发者ID:android-opensource-library-56,项目名称:android-opensource-library-56,代码行数:35,代码来源:RealtimeCameraPreviewActivity.java


示例3: onCreate

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_proccessing);

    mImageView = (GPUImageView) findViewById(R.id.gpuimage);
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
            R.drawable.image);
    mImageView.setImage(bitmap);

    mSeekBar = (SeekBar) findViewById(R.id.seekBar1);
    mSeekBar.setMax(100);
    mSeekBar.setEnabled(false);
    mSeekBar.setOnSeekBarChangeListener(this);

    // セピア
    mSepia = new GPUImageSepiaFilter();
    // 白黒
    mGray = new GPUImageGrayscaleFilter();
    // シャープ
    // -4.0 to 4.0
    mSharp = new GPUImageSharpenFilter();
    // エッジ
    // 0.0 to 5.0
    mEdge = new GPUImageSobelEdgeDetection();

    findViewById(R.id.sepia).setOnClickListener(this);
    findViewById(R.id.gray).setOnClickListener(this);
    findViewById(R.id.sharp).setOnClickListener(this);
    findViewById(R.id.edge).setOnClickListener(this);

}
 
开发者ID:android-opensource-library-56,项目名称:android-opensource-library-56,代码行数:33,代码来源:ImageProccessingActivity.java


示例4: setSharpnen

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
private void setSharpnen(Builder builder) {
    Log.d(TAG, "Sharpen " + builder.sharpenFactor);
    if (builder.sharpenFactor != 0.0f) {
        sharpenFilter = new GPUImageSharpenFilter();
        sharpenFilter.setSharpness(builder.sharpenFactor);

        filterList.add(sharpenFilter);
    }
}
 
开发者ID:cuipengpeng,项目名称:p1-android,代码行数:10,代码来源:FilterBuilder.java


示例5: initFilter

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
@Override
protected GPUImageFilter initFilter(Context context) {
    List<GPUImageFilter> filterList = new ArrayList<GPUImageFilter>();

    GPUImageSharpenFilter sharpen = new GPUImageSharpenFilter();
    sharpen.setSharpness(0.1f);
    filterList.add(sharpen);

    GPUImageOverlayBlendFilter blendFilter = new GPUImageOverlayBlendFilter();
    blendFilter.setBitmap(BitmapFactory.decodeResource(
            context.getResources(), R.drawable.filter_focus_vignette));
    filterList.add(blendFilter);

    GPUImageToneCurveFilter toneCurve = new GPUImageToneCurveFilter();
    PointF[] redControlPoints = new PointF[] { new PointF(0.0f, 0.0f),
            new PointF(0.173f, 0.11f), new PointF(0.502f, 0.514f),
            new PointF(0.733f, 0.82f), new PointF(1.0f, 1.0f) };

    PointF[] greenControlPoints = new PointF[] { new PointF(0.0f, 0.0f),
            new PointF(0.165f, 0.102f), new PointF(0.502f, 0.51f),
            new PointF(0.827f, 0.906f), new PointF(1.0f, 0.969f) };

    PointF[] blueControlPoints = new PointF[] { new PointF(0.0f, 0.078f),
            new PointF(1.0f, 0.961f) };

    toneCurve.setRedControlPoints(redControlPoints);
    toneCurve.setGreenControlPoints(greenControlPoints);
    toneCurve.setBlueControlPoints(blueControlPoints);

    filterList.add(toneCurve);

    return new GPUImageFilterGroup(filterList);
}
 
开发者ID:cuipengpeng,项目名称:p1-android,代码行数:34,代码来源:FocusFilter.java


示例6: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RGBAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGaussianBlurFilter) {
        adjuster = new GaussianBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageCrosshatchFilter) {
        adjuster = new CrosshatchBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBulgeDistortionFilter) {
        adjuster = new BulgeDistortionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGlassSphereFilter) {
        adjuster = new GlassSphereAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHazeFilter) {
        adjuster = new HazeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSphereRefractionFilter) {
        adjuster = new SphereRefractionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSwirlFilter) {
        adjuster = new SwirlAdjuster().filter(filter);
    } else if (filter instanceof GPUImageColorBalanceFilter) {
        adjuster = new ColorBalanceAdjuster().filter(filter);
    } else {
        adjuster = null;
    }
}
 
开发者ID:macyuan,项目名称:TAG,代码行数:62,代码来源:GPUImageFilterTools.java


示例7: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
  if (filter instanceof GPUImageSharpenFilter) {
    adjuster = new SharpnessAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSepiaFilter) {
    adjuster = new SepiaAdjuster().filter(filter);
  } else if (filter instanceof GPUImageContrastFilter) {
    adjuster = new ContrastAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGammaFilter) {
    adjuster = new GammaAdjuster().filter(filter);
  } else if (filter instanceof GPUImageBrightnessFilter) {
    adjuster = new BrightnessAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSobelEdgeDetection) {
    adjuster = new SobelAdjuster().filter(filter);
  } else if (filter instanceof GPUImageEmbossFilter) {
    adjuster = new EmbossAdjuster().filter(filter);
  } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
    adjuster = new GPU3x3TextureAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHueFilter) {
    adjuster = new HueAdjuster().filter(filter);
  } else if (filter instanceof GPUImagePosterizeFilter) {
    adjuster = new PosterizeAdjuster().filter(filter);
  } else if (filter instanceof GPUImagePixelationFilter) {
    adjuster = new PixelationAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSaturationFilter) {
    adjuster = new SaturationAdjuster().filter(filter);
  } else if (filter instanceof GPUImageExposureFilter) {
    adjuster = new ExposureAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHighlightShadowFilter) {
    adjuster = new HighlightShadowAdjuster().filter(filter);
  } else if (filter instanceof GPUImageMonochromeFilter) {
    adjuster = new MonochromeAdjuster().filter(filter);
  } else if (filter instanceof GPUImageOpacityFilter) {
    adjuster = new OpacityAdjuster().filter(filter);
  } else if (filter instanceof GPUImageRGBFilter) {
    adjuster = new RGBAdjuster().filter(filter);
  } else if (filter instanceof GPUImageWhiteBalanceFilter) {
    adjuster = new WhiteBalanceAdjuster().filter(filter);
  } else if (filter instanceof GPUImageVignetteFilter) {
    adjuster = new VignetteAdjuster().filter(filter);
  } else if (filter instanceof GPUImageDissolveBlendFilter) {
    adjuster = new DissolveBlendAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGaussianBlurFilter) {
    adjuster = new GaussianBlurAdjuster().filter(filter);
  } else if (filter instanceof GPUImageCrosshatchFilter) {
    adjuster = new CrosshatchBlurAdjuster().filter(filter);
  } else if (filter instanceof GPUImageBulgeDistortionFilter) {
    adjuster = new BulgeDistortionAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGlassSphereFilter) {
    adjuster = new GlassSphereAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHazeFilter) {
    adjuster = new HazeAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSphereRefractionFilter) {
    adjuster = new SphereRefractionAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSwirlFilter) {
    adjuster = new SwirlAdjuster().filter(filter);
  } else if (filter instanceof GPUImageColorBalanceFilter) {
    adjuster = new ColorBalanceAdjuster().filter(filter);
  } else if (filter instanceof GPUImageLevelsFilter) {
    adjuster = new LevelsMinMidAdjuster().filter(filter);
  } else {
    adjuster = null;
  }
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:64,代码来源:FilterTools.java


示例8: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RedAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else {
        adjuster = null;
    }
}
 
开发者ID:k0shk0sh,项目名称:Filtra-StyleMe-,代码行数:46,代码来源:FilterAdjuster.java



注:本文中的jp.co.cyberagent.android.gpuimage.GPUImageSharpenFilter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UntrustedIdentityException类代码示例发布时间:2022-05-23
下一篇:
Java EMChatOptions类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap