Thread Subject:
Use of histeq() as a parameter in nlfilter / colfilt

Subject: Use of histeq() as a parameter in nlfilter / colfilt

From: Pradeep Kumar

Date: 6 Sep, 2012 11:40:08

Message: 1 of 1

While performing neighborhood operations using nlfilter or colfilt, I noticed that the use of histeq as a parameter did not work and resulted in the error:

 "??? Assignment has more non-singleton rhs dimensions than non-singleton
subscripts

Error in ==> nlfilter at 75
        b(i,j) = feval(fun,x,params{:});
".

This code works fine:

                 output=colfilt(input,[m n],'sliding',@mean);

while this doesn't (replaced @mean with @histeq):

                 output=colfilt(input,[m n],'sliding',@histeq);

Can anyone explain why? Is there another better way to perform local histogram equalization? Thank you for your time.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
local Pradeep Kumar 6 Sep, 2012 07:44:10
histogram Pradeep Kumar 6 Sep, 2012 07:44:10
equalizaition Pradeep Kumar 6 Sep, 2012 07:44:10
nlfilter Pradeep Kumar 6 Sep, 2012 07:44:10
colfilt Pradeep Kumar 6 Sep, 2012 07:44:10
neighborhood Pradeep Kumar 6 Sep, 2012 07:44:10
rssFeed for this Thread

Contact us