BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.85k stars 605 forks source link

GPUImage2 example for android? #222

Closed amits180891 closed 6 years ago

amits180891 commented 6 years ago

Hello Sir,

i have search a lot for Android but not get exact example like GPUImage2.

can you please suggest me for android how can i achieve following filters for Android apps:

  1. Harris Corner Detection Filter
  2. Noble Corner Detection Filter
  3. ShiTomasi Feature Detection Filter.
zubco commented 6 years ago

@amits180891 you can find all shaders in "GPUImage2/framework/Source/Operations/Shaders/"

HarrisCornerDetector_GL.fsh (or GLES) NobleCornerDetector_GL.fsh (or GLES) ShiTomasiFeatureDetector_GL.fsh (or GLES)

All mentioned filters work is done by this shaders, respectively.

BradLarson commented 6 years ago

This is an iOS / Mac / Linux project. If and when Swift becomes a viable language on Android, I may port this over. Until then, you can look at the shaders themselves and roll your own version of this natively.