Question

i want to the code of the Crack detection image processing using Matlab

i want to the code of the Crack detection image processing using Matlab

Homework Answers

Answer #1

%Image loading%

I=imread('two.jpg');

figure,imshow(I)

title('Original image')

%Adjust Image%

Istrech = imadjust(I,stretchlim(I));

figure,imshow(Istrech)

title('Contrast stretched image')

%Converting %

gray_s = rgb2gray(Istrech);

figure,imshow(Igray_s,[])

title('RGB to gray (contrast stretched) ')

%%Image segmentation by thresholding%

level = 0.08;

Ithres = im2bw(Igray_h,level);

figure,imshow(Ithres)

title('Segmented cracks')

BW = bwmorph(gradmag,'clean',10);

figure,imshow(BW)

title('Cleaned image')

BW = bwmorph(gradmag,'thin', inf);

figure,imshow(BW)

title('Thinned image')

BW = imfill(gradmag, 'holes')

figure,imshow(BW)

title('Filled image')

figure,imtool(BW1)

figure,imtool(I)

calibration_length=0.001;  

calibration_pixels=1000;

crack_pixel=35;

crack_length=(crack_pixel *calibration_length)/calibration_pixels;

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Digital image processing I need homomorphic matlab code that can use colored image.
Digital image processing I need homomorphic matlab code that can use colored image.
Write a matlab code for following : Load image ‘Balloon.tif’ into Matlab .  Develop a...
Write a matlab code for following : Load image ‘Balloon.tif’ into Matlab .  Develop a function to mark all pixels in green with 1 and 0 for the rest. Display the result image  Convert it into a grayscale image, denoted with ‘img1’  Create a copy of the clean grayscale image, denoted with ‘img2’, in the memory and add salt and pepper noise to it using imnoise  Remove salt and pepper noise using function medfilt2 and display...
The following code must be written in Matlab I want to print the following in Matlab...
The following code must be written in Matlab I want to print the following in Matlab (x1,x2, x3, ....xn) = (0.33333, 0.33333, 0.33333,....) That is for n variables . The whole thing should be on the same line. I need to use fprintf and write out the coordinates with 5 decimal places of variable xn = (0.33333, 0.33333, 0.33333,....) Thanks!
Write a code in matlab for going through every element in a imported image matrix that...
Write a code in matlab for going through every element in a imported image matrix that has been gray scaled using for loops (going through every row and column) and changing every element that is equal to 255 to 1 and every number less then 255 equal to 0. Then find the x and y coordinate of each element now equal to 0 in that image matrix once again going through each row and column.
I have a question regarding an image processing application for an Engineer? Question: ?What is the...
I have a question regarding an image processing application for an Engineer? Question: ?What is the main purpose(s) of using Web-Safe images, images that have color palettes of 216 colors? Why would an Engineer might need to convert a regular image to a web-safe image when in his or her image processing pipeline?
USING MATLAB Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the...
USING MATLAB Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the use of grey scale. Be creative. You can earn up to 5 additional points.
MATLAB question dont change subject Give the matlab code for the following, i need to find...
MATLAB question dont change subject Give the matlab code for the following, i need to find the critical damping coefficient of a system User will enter mass and stiffness and the code will print the critical damping coefficient Give working code or else i will badly downvote
The following code must be written in matlab. I have a list of inidices say L...
The following code must be written in matlab. I have a list of inidices say L = [1,2,5,10,6,7,] I want to loop through indices in a for loop from i=1:n , n=100 but I must skip all indices that are not in the list L How can I do this if I am not allowed to use the ismember function. Thankse
I need MATLAB code no handwritten solution required. Write a MATLAB script to solve the following...
I need MATLAB code no handwritten solution required. Write a MATLAB script to solve the following equations using the Cramer’s rule, and compare your results with MATLAB’s root finding method ( 25 pts. ). 8x1 − 2x2 − 1x3 = 5 − 2x1 + 9x2 − 4x3 − x4 = 2 − x1 − 3x2 + 7x3 − x4 − 2x5 = 1 − 4x2 − 2x3 + 12x4 − 5x5 = 1 − 7x3 − 3x4 − 15x5 =...
write a matlab code to calculate the correlation coefficient for five neighboring pixels an in an...
write a matlab code to calculate the correlation coefficient for five neighboring pixels an in an image preferable ( 256 x 256 ) lena image