how to apply histogram and median filters for a jpg imag??
Show older comments
when i apply to the image it is showing error
Error using medfilt2
Expected input number 1, A, to be two-dimensional.
Error in medfilt2>parse_inputs (line 110)
validateattributes(a, {'numeric','logical'}, {'2d','real'}, mfilename, 'A', 1);
Error in medfilt2 (line 47)
[a, mn, padopt] = parse_inputs(varargin{:});
Error in medhistfilter (line 7)
m=medfilt2(pic);
how do i overcome this??
9 Comments
seshi reddy
on 24 Jun 2014
Edited: seshi reddy
on 24 Jun 2014
Image Analyst
on 24 Jun 2014
seshi reddy
on 24 Jun 2014
Edited: seshi reddy
on 24 Jun 2014
Image Analyst
on 24 Jun 2014
You are. Edit the post, highlight the code (and ONLY the code), then click {}Code.
seshi reddy
on 24 Jun 2014
Image Analyst
on 24 Jun 2014
Did you try my Answer? It should fix the problem.
seshi reddy
on 24 Jun 2014
Image Analyst
on 24 Jun 2014
Sorry, I don't see in your code where you area extracting one color channel or are calling rgb2gray(). Where is that?
seshi reddy
on 24 Jun 2014
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!