View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Law's Texture Filter

4.0 | 2 ratings Rate this file 36 Downloads (last 30 days) File Size: 1.4 KB File ID: #39951 Version: 1.0
image thumbnail

Law's Texture Filter



Implementation of Law's texture filter from 1980, input is an image and output 6 filtered maps.

| Watch this File

File Information

Law's image filter. For further segmentation based on it, you need to move around a sliding windows and locally calculate histogram for that window and perform clustering of these histograms, or any other technique. If there is demand, I will implement also the segmentation. Otherwise it is implemented according to Shapiro's Computer Vision book.

It is free for any use. If you use it, please cite:

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
09 Dec 2015 Hsin-Pai Cheng

I think this is the original 5X5 matrics [Laws, 1979; Wu et al., 1992]
filters{1}=[1 4 6 4 1];
filters{2}=[-1 -2 0 2 1];
filters{3}=[-1 0 2 0 -1];
filters{4}=[1 -4 6 -4 1];
filters{5}=[-1 2 0 -2 -1];

Comment only
08 Dec 2015 Hsin-Pai Cheng

% % % % If you wanna test the code, I've written it for you.% % % % %
GreyImage = imread('yourPic.JPG');
title('Original Grey Image');
[mapz] = laws( GreyImage , 3);//3 is serendipitously choose
for i=1:9

19 Jan 2015 MarkusM Markus

Error in Line 16:
filters{1}=[1 4 6 4 2];
it has to be "[1 4 6 4 1];

Comment only
20 May 2014 Daniel

Daniel (view profile)

Requires the wavelet toolbox to run (uses the wfusmat function)

23 Jan 2014 Faraz

Faraz (view profile)

Undefined function 'wfusmat' for input arguments of type 'double'.

Error in laws (line 41)

Comment only
31 Dec 2013 nick

nick (view profile)

Hello, i am new in matlab and i have a question for the above code.Can you please tell me how to show the images that you have avatar with this code?

Comment only

Contact us