Given a colour image containing a variety of shapes your MATLAB-based system /algorithm should be able to detect and classify/identify the distinct shapes. Your shape detection algorithm should be able to detect the following shapes

2 Ansichten (letzte 30 Tage)
1. A binary (black and white) image with all the shapes in white and background in black. In addition, a number, indicating the classification according to the above numbered descriptors, must be inserted in the centre of each shape. A value of zero (0) should be placed in the centre of the shape that does not fall into one of the above classifications.
2. A colour image with each shape displayed in a pre-assigned colour i.e. instead of inserting a number into each shape they can be displayed in different colours e.g. blue for all circles and yellow for all hexagons. The colour black must be assigned to all unclassified shapes. The background of this image must be white.
3. A binary (black and white) image with all the shapes in white and background in black. In addition, a number, indicating the area (in m2 and 3 decimal places), must be inserted in the centre of each shape in the image. A text value of "N/A" should be placed in the centre of the shape that does not fall into one of the above classifications. Assume each pixel represents a distance of 1 mm.

Akzeptierte Antwort

Image Analyst
Image Analyst am 24 Apr. 2014
OK, so what algorithm did you come up with. I can easily think of 2 or 3 off the top of my head. What's your algorithm? And what's your question ?
  47 Kommentare
yeshmeel
yeshmeel am 2 Jun. 2014
Verschoben: DGM am 13 Feb. 2023
where is the fprintf() i dont see it on the code man.
keagan
keagan am 10 Jun. 2014
Verschoben: DGM am 13 Feb. 2023
Hello Image Analyst
Guess what...I passed my assignment. I want to thank you for all your help. Thank you.
Maybe I will contact you in the future if image processing comes my way again.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by