Click here to Skip to main content

Articles by YvesDaoust (Articles: 2, Tip/Tricks: 10)

Articles: 2, Tip/Tricks: 10

RSS Feed

Average article rating: 4.73

Algorithms & Recipes
General
Posted: 21 Apr 2012   Updated: 22 Apr 2012   Views: 10,511   Rating: 4.86/5    Votes: 10   Popularity: 4.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 0
We study the problem of computing R cos(a + k b) and R sin(a + k b) for increasing k
Posted: 26 Oct 2013   Updated: 26 Oct 2013   Views: 5,405   Rating: 4.60/5    Votes: 3   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 321
Short study of the perspective projection of a rectangle in space; homography opposed to bilinear transform
No blogs have been submitted.

Average tips rating: 4.35

Posted: 16 May 2011   Updated: 16 May 2011   Views: 995   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
// A faster solutionreturn (value & mask) == 0;// Where mask == ~ (None | One | Eight)// This constant can be precomputed at compile-time or run-time (like in Alternate 1)
Posted: 13 Dec 2011   Updated: 13 Dec 2011   Views: 1,849   Rating: 1.80/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
array= new int[4][] { new int[] { 5, 1, 0, 0, 0 }, new int[] { 6, 2, 0, 1, 0 }, new int[] { 7, 3, 0, 0, 0 }, new int[] { 0, 4, 0, 0, 0 },};1341 keystrokes spared.
Math
Posted: 23 Dec 2013   Updated: 24 Dec 2013   Views: 8,316   Rating: 4.62/5    Votes: 6   Popularity: 3.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 0
Yet another home-made implementation of the floor function
Posted: 2 Jul 2014   Updated: 2 Jul 2014   Views: 2,126   Rating: 5.00/5    Votes: 4   Popularity: 2.67
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 1
Computation of the Faulhaber polynomials coefficients
Programming Tips
General
Posted: 9 Nov 2010   Updated: 9 Nov 2010   Views: 1,637   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
// Real solutions of the quadratic equation A x^2 + B x + C = 0// Returns two roots (possibly identical) in increasing order, or nonebool Quadratic(double A, double B, double C, double R[2]){ if (A == 0) { // Linear, impossible or degenerate, cannot find two roots ...
Posted: 9 Aug 2011   Updated: 9 Aug 2011   Views: 1,970   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
What about this, using SSE2 assembly (32 bits):void Zero(void* Buffer, int Count){ char* Cur= (char*)Buffer; char* End= (char*)Buffer + Count; // Clear the initial unaligned bytes while (Cur < End && (Cur - (char*)0) & 0xf) { *Cur++= 0; } // Clear...
Posted: 13 Dec 2011   Updated: 13 Dec 2011   Views: 2,775   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
http://msdn.microsoft.com/en-us/library/h5e7chcf.aspx[^]
Posted: 17 Jan 2012   Updated: 17 Jan 2012   Views: 3,914   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
You shouldn't rely on methods from the .NET classes (Bitmap::SetPixel, Bitmap::GetPixel, Color::FromArgb) in the inner loop as these are called intensively, million times per image, and their implementation are opaque to you.If their implementation is opaque to the compiler too, no code...
Posted: 17 Jan 2012   Updated: 17 Jan 2012   Views: 2,018   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
You should be delighted by the CORDIC approach to elementary functions computation.http://drdobbs.com/184404244[^]log10(x){ z = 0; for ( i=1; i= 1) x = x - x*2^(-i); z = z - log10(1-2^(-i)); else x = x + x*2^(-i); ...
Posted: 18 Jan 2012   Updated: 18 Jan 2012   Views: 2,271   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
A piece of warning, though: the LockBits method is not a transparent one, it does image format conversion before returning a pointer to the bitmap (this is why it has a PixelFormat argument). And conversely, the UnlockBits method converts back to the original format. My best guess is that when...
No reference articles have been posted.

YvesDaoust
CEO VISION fOr VISION
Belgium Belgium
I fell into applied algorithmics at the age of 16 or so. This eventually brought me to develop machine vision software as a professional. This is Dreamland for algorithm lovers.


Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 21 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid