Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Nlfilter_extremely slow

Subject: Nlfilter_extremely slow

From: doug kopet

Date: 22 Aug, 2010 07:33:04

Message: 1 of 1

Hello guys,

With the help of ImageAnalyst, I am using 2 functions below for using nfilter. but the problem is that its very slow...too slow.

I'd like to ask for some help on a faster option for processing time.

You can get my image at :


clear all;
close all;

A = imread('dougyspic.png');

IM_Original = rgb2gray(A) ;

Block = [ 500 500];
standardDeviationFunction = @(x) std2(x(:));
standardDeviationImage = nlfilter(IM_Original, Block, standardDeviationFunction);

MeanFilterFunction = @(x) mean2(x(:));
meanImage = nlfilter(IM_Original, Block, MeanFilterFunction);


Tags for this Thread

No tags are associated with this thread.

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.

Contact us