How to use a filter in a controller?

I have written a filter function which will return data based on the argument you are passing. I want the same functionality in my controller. Is it possible to reuse the filter function in a controller?
This is what I've tried so far
function myCtrl($scope,filter1) { // i simply used the filter function name, it is not working. }

Angular js angular, js, controller 0 Answer