Carnë,
I made the funtion to recognize some shapes all i know about YCbCr saids
that Y have a nominal range of 16-235 (black-white); Cb and Cr are defined
to have a nominal range of 16-
240, so they values are uint8.
Thanks for all your help.

Best reguards form Uruguay
Santiago Reyes


2011/6/1 Carnë Draug <carandraug+...@gmail.com>

> 2011/5/31 santiago reyes <mailalcu...@gmail.com>:
> > Carnë
> > I attach the file with the changes that you want.
> > I hope this work to the community.
>
> Hi Santiago,
>
> I added your function to the image package. It will be available on
> the next release. Thanks for your contribution, it's very appreciated.
>
> I did a few changes to your code:
>
> * As David Bateman suggested I removed the for loops and replaced with
> im(:,:,1) which made the function much much faster (500x times faster
> in a 100x100 image and 360x faster in a 500x500 image). That one
> change made that the function took 0.2sec instead of 72sec in the
> 500x500 image example.
>
> * changed the name of the variable dimensiones to it's english equivalent
> * changed the way you check for errors
> * removed the im_cal variable, no point in keeping both im and im_cal on
> memory
> * removed the cpermute on seealso (we don't have that function)
>
> * I added your e-mail to the copyright notice
>
> * added a note to the help text saying that it only works with uint8 images
>
> On this last point, if the users uses a uint16 image as input, the
> output result will be uint8. But will it be wrong or just on another
> type? If it's wrong, maybe we should check if the input is uint8 and
> return an error if it's not.
>
> Carnë
>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to