From: AZZA Foster on
Image Analyst, thank you for your input it is greatly appreciated. I have tried a few ideas with no great results. I will try all the methods suggested below and will let you know what the result has been.

Once again THANK YOU for your time, i will post back in a few days time to let you know of my progress.

AZZA
From: ImageAnalyst on
On Apr 26, 10:08 am, "AZZA Foster" <Aaron.Foste...(a)ntlworld.com>
wrote:
> Image Analyst, thank you for your input it is greatly appreciated. I have tried a few ideas with no great results. I will try all the methods suggested below  and will let you know what the result has been.
>
> Once again THANK YOU for your time, i will post back in a few days time to let you know of my progress.
>
> AZZA
------------------------------------------------------------------------------------
Well you're welcome and good luck. I didn't produce any code because
you said this was just a sample image snagged from the internet, and
several times in the past I've put in time to solve an image like that
and then people said "but it doesn't work with all images." Well of
course they didn't supply all images and so the algorithm could be
only written to solve the one image they did supply (and hence I
wasted my time). As you can imagine it's much harder to write a
robust algorithm to solve a wide variety of images with vastly
different appearances than it is for just one single image. But good
luck, and you can post your images and/or code later if you need more
help.

From: AZZA Foster on
This alogorithem will be designed just for Data Matrix codes only, not QR and other matrix types. I agree Analyst it may well be good for the program to recognise my original image, this is why the blob size matter as the data matrix will always have the L bend (" Finder Pattern ") and the tracking marks around the other two sides. The filters will need to leave these intact.
From: AZZA Foster on
How are area descriptors written i keep getting the follwoing error.

L1 = bwlabel (closebw); % Convert closebw to a label matrix %
L2 = regionprops (closebw,'area','boundingbox');
W = [100.4 , 100.4];
NR = Length (W);

??? Undefined function or method 'Length' for input arguments of type 'double'.
From: Steven Lord on

"AZZA Foster" <Aaron.Foster17(a)ntlworld.com> wrote in message
news:hr6r60$mc9$1(a)fred.mathworks.com...
> How are area descriptors written i keep getting the follwoing error.
>
> L1 = bwlabel (closebw); % Convert closebw to a label matrix %
> L2 = regionprops (closebw,'area','boundingbox');
> W = [100.4 , 100.4];
> NR = Length (W);
>
> ??? Undefined function or method 'Length' for input arguments of type
> 'double'.

Do you mean you want to compute the length (in this case 2) of the vector W?
In that case, use the lower-case length:

NR = length(W);

If you mean something else you will need to clarify what specifically you
mean to do.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ