videofilter: add sharpening filter
Submitted by Sanjay NM
Link to original bug (#745151)
Description
Created attachment 297860
Input and Output images
Added a new filter which enhances video in NV format. This uses contrast stretching and Convolution internally to achieve the required output.
This is tested by using below pipeline
gst-launch-1.0 filesrc location=pm.mp4 ! decodebin ! videoconvert ! enhance ! videoconvert ! ximagesink
gst-launch-1.0 -v videotestsrc ! videoconvert ! enhance ! videoconvert ! ximagesink
I have attached the input and output images to see the result. Left image is original and right image is output
This patch is important as gStreamer does not have convolution implemented yet.
Convolution implemented in this patch takes kernel input, so just by passing different kernels its possible to achieve a number of good video filters which are quite essential for most of the video based applications.
Request to review
Attachment 297860, "Input and Output images":