## Matlab

Moderators: None (Apply to moderate this forum)
Number of posts: 2147

This Forum Only

object counting problem solve via matlab Posted by warlead on 4 Aug 2008 at 7:29 AM

http://fke.utm.my/makmal/PBL/DSP/Uji5.pdf

I must do the object counting solution via matlab,
Someone who can guide me plz....

thanks

thanx
Re: object counting problem solve via matlab Posted by warlead on 4 Aug 2008 at 8:32 AM
:
: http://fke.utm.my/makmal/PBL/DSP/Uji5.pdf
:
:
: I must do the object counting solution via matlab,
: Someone who can guide me plz....
:
: thanks
:
:
: thanx
:

anyone can help me..plz

Re: object counting problem solve via matlab Posted by warlead on 4 Aug 2008 at 9:35 AM
: :
: I have to solve this question,someone can please guide me?

1. Observe carefully the 3 images given. In Figure 5a, there two different sizes of the beads. Likewise in Figure 5b are two different shapes of nuts. Finally, Figure 5c you will 3 different shapes and sizes of tablets (pills). You will be assigned to work with only ONE of these images.

2. You need to write one Matlab function that will accept the image to be analyzed and the criteria used for determining the objects such that the output of this function will give how many different objects there are in the image and how many for each of them. You may pass more than one criteria. For example you can create a function that accepts an image array and two criteria as follow:
[numob, obcount] = function objcounter(x, crit1, crit2)
% x will hold the image data
% crit1 specify the first criteria e.g. object size
% crit2 specify the 2nd criteria e.g. num pixels

3. You are not required to identify the shape of the object whether it is a circular or hollow or ellipse shape object. You can simply use generic terms like object or item. Thus, the output of your Matlab function when you send in Figure 5c would be:
Object 1 – 2
Object 2 – 4
Object 3 – 5

the picture is at this link

http://fke.utm.my/makmal/PBL/DSP/Uji5.pdf
:
:
:
:
:
:
:
:

## Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic