Question

2) The aim of this project is to explore the role of structuring element on the...

2) The aim of this project is to explore the role of structuring element on the output image.

Consider the following simple binary image. Apply morphological dilation with different structuring elements and different sizes. (Hint: use imdilate, strel MATLAB commands).

Image=[00000;01100;01100;00100;00000]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I have implemented the Matlab code to perform dilations using different Structuring Element and display the image in Plot.

Please find the following Code Screenshot,Output and Code.

ANY CLARIFCATIONS REQUIRED LEAVE A COMMENT

1.CODE SCREENSHOT:

DilationDemo.m + 1 - 2 - 3 4 5 6 7 - 8- 9 - 10 11 12 13 - clc; close all; Image=[0 0 0 0 0;0 1 1 0 0;0 1 1 0 0;0 0 1 0 0;0 0

2 3 Dilation Demo.mx + 22 SE = strel(line, 10,5); J = imdilate (Image, SE) 24 subplot (3,3,5) 25 imshow (J), title(10x5 Li

2.OUTPUT:

Figure 1 File Edit View Insert Tools Desktop Window Help * ܨܵܐ Original 2X2 SQUARE 3X3 SQUARE 4X4 SQUARE ܂ ܕܙ 10X5 Line DISK

3.CODE:

clc;
close all;
Image=[0 0 0 0 0;0 1 1 0 0;0 1 1 0 0;0 0 1 0 0;0 0 0 0 0]
subplot(3,3,1)
imshow(Image),title('Original')
%applying Square Structural Element of Size 2
SE = strel('square', 2);
J = imdilate(Image,SE)
subplot(3,3,2)
imshow(J),title('2X2 SQUARE')
%applying Square Structural Element of Size 3
SE = strel('square', 3);
J = imdilate(Image,SE)
subplot(3,3,3)
imshow(J),title('3X3 SQUARE')
%applying Square Structural Element of Size 3
SE = strel('square', 4);
J = imdilate(Image,SE)
subplot(3,3,4)
imshow(J),title('4X4 SQUARE')
%applying Line Element of Size 10,5
SE = strel('line',10,5);
J = imdilate(Image,SE)
subplot(3,3,5)
imshow(J),title('10X5 Line')
%applying disk Element of Size 1
SE = strel('disk',1);
J = imdilate(Image,SE)
subplot(3,3,6)
imshow(J),title('DISK')
%applying Sphere Element of Size 1
SE =strel('sphere', 1)
J = imdilate(Image,SE)
subplot(3,3,7)
imshow(J),title('Sphere')
%applying Rectangle Element of Size 2 3
SE = strel('rectangle',[2 3])
J = imdilate(Image,SE)
subplot(3,3,8)
imshow(J),title('Rectangle')
%applying Octogone Element of Size 2
SE = strel('diamond',2)
J = imdilate(Image,SE)
subplot(3,3,9)
imshow(J),title('Octogone')
Add a comment
Know the answer?
Add Answer to:
2) The aim of this project is to explore the role of structuring element on the...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 3) Consider a simple binary image and perform the following compound morphological operations. a) opening   b)...

    3) Consider a simple binary image and perform the following compound morphological operations. a) opening   b) closing c) hit-or-miss (Hint: use imopen, imclose, bwhitmiss MATLAB commands).

  • 2. The following (adapted from Wikipedia) gives pseudocode for searching a sorted vector A for a ...

    2. The following (adapted from Wikipedia) gives pseudocode for searching a sorted vector A for a specific element T. Given an array A of n elements with values or records A1 An and target value T, the following subroutine uses binary search to find the index of T in A. 1. Set L to 1 and R ton. 2. If L>R, the search terminates as unsuccessful Set m (the position of the middle element) to the floor of (L+R)/2. 3....

  • We will be using Matlab as the software tool for this lab project. 1.Explore and become...

    We will be using Matlab as the software tool for this lab project. 1.Explore and become familiar with the random number generators in Matlab such as “rand”, “randn”, and “randi” (in fact all software tools can only generate pseudo-random numbers). Notice that to randomize the generators the use of “rng” function is encouraged as the previous techniques are discouraged. 2. “Random walk” is one of the primary and relative simple random processes in which the process starts from a neutral...

  • Question 2 In this question, you will read two data files that include integers into two...

    Question 2 In this question, you will read two data files that include integers into two different arrays – the same way we did in class (but we are doing to arrays here). Duplicates are ok. 1- After you read the data into the array (use one function that takes an int array and a dsize by reference just like we did in class, and call that from main to fill both arrays). 2- Include a printArray function so that...

  • the picture above is the one you are supposed to use for the MATlab code please...

    the picture above is the one you are supposed to use for the MATlab code please help Problems. Grayscale images are composed of a 2D matrix of light intensities from O (Black) to 255 (White). In this lab you will be using grayscale images and do 2D-array operations along with loops and iflelse branches. 1. We can regard 2D grayscale images as 2D arrays. Now load the provided image of scientists at the Solvay Conference in 1927 using the imread)...

  • I have a java project that I need help trying to finish. I have most of it completed but the issue I am running into is adding numbers with different lengths. Project requirements: . Use a Stack ADT w...

    I have a java project that I need help trying to finish. I have most of it completed but the issue I am running into is adding numbers with different lengths. Project requirements: . Use a Stack ADT with the implementation of your choice (Array or Link), it should not make a difference 2.Read two “integer” numbers from the user. Hint: You don’t need to use an int type when you read, it may be easier to parse the input...

  • Project Description: In this project, you will combine the work you’ve done in previous assignments to...

    Project Description: In this project, you will combine the work you’ve done in previous assignments to create a separate chaining hash table. Overview of Separate Chaining Hash Tables The purpose of a hash table is to store and retrieve an unordered set of items. A separate chaining hash table is an array of linked lists. The hash function for this project is the modulus operator item%tablesize. This is similar to the simple array hash table from lab 5. However, the...

  • Can anyone check my answer? 2. Understanding the role of fixed cost in the short run...

    Can anyone check my answer? 2. Understanding the role of fixed cost in the short run Aa Aa Consider an airline's decision about whether or not to cancel a particular flight that hasn't sold out. The following table provides data on the total cost of operating a 100-seat plane for various numbers of passengers Number of Total Cost (TC) 25,000 35,000 40,000 43,000 45,000 46,000 47,000 47,700 48,000 48,200 48,100 Passengers 10 20 30 40 50 60 70 80 90...

  • Computer Numerical Machines (CNC machines) are advanced machines consisting of different types(turning and milling) that are...

    Computer Numerical Machines (CNC machines) are advanced machines consisting of different types(turning and milling) that are utilized for part cutting and design. They categorize under subtractive manufacturing, while 3d printers and scanners branch from additive manufacturing. For the process of cutting any certain part to achieve a desired shape, the first step begins with design, to finally reach the manufacturing procedure. Accordingly, you are required to choose a part (the part does not need to be related to engineering, any...

  • 2. Understanding the role of fixed cost in the short run Aa Aa Consider an airline's...

    2. Understanding the role of fixed cost in the short run Aa Aa Consider an airline's decision about whether or not to cancel a particular flight that hasn't sold out. The following table provides data on the total cost of operating a 100-seat plane for various numbers of passengers Number of Total Cost (TC) 35,000 55,000 65,000 67,000 68,000 68,500 69,000 70,000 70,500 70,800 70,900 Passengers 10 20 30 40 50 60 70 80 90 100 Given the information presented...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT