clear; clc; clf; // Load the texture image texture = imread('C:\Users\home\Desktop\d1.jpg'); // Display the original texture subplot(2, 2, 1); imshow(texture); title('Original Texture'); // Convert the texture to grayscale gray_texture = rgb2gray(texture); // Display the grayscale texture subplot(2, 2, 2); imshow(gray_texture); title('Grayscale Texture'); // Apply filtering techniques // Gaussian filtering sigma = 3; gaussian_kernel = fspecial('gaussian', [5, 5], sigma); gaussian_filtered = imfilter(gray_texture, gaussian_kernel, 'replicate'); // Display the Gaussian filtered texture subplot(2, 2, 3); imshow(gaussian_filtered); title('Gaussian Filtered'); // Median filtering using medfilt2 from image_processing toolbox //exec('C:\Program Files\scilab-6.1.1'); // Replace with the actual path to the image_processing toolbox median_filtered = medfilt2(gray_texture, [5, 5]); // Display the median filtered texture subplot(2, 2, 4); imshow(median_filtered); title('Median Filtered');