Re: Fast Image access for binarization



Oh, and depending on if you're processor can take advantage of any loop
unraveling you can also try

while (pixel!=end)
{
*pixel++ = *pixel>threshold;

*pixel++ = *pixel>threshold;

*pixel++ = *pixel>threshold;

*pixel++ = *pixel>threshold;
}

assuming you're image size is a multiple of 4 .. doing this on an Intel
chip does seem to make a difference!

.



Relevant Pages

  • Re: How to choose FPGA for a huge computation?
    ... Depending on the accuracy and bit size. ... in one clock cycle. ... the loop above is only one of a half dozen intermediate ... orders require different "relatively random" accesses to the memory ...
    (comp.arch.fpga)
  • Re: [PHP] Static Pages with PHP
    ... depending on some ... parameters I will display a static page from within my PHP code. ... you probably want to fopen/fread in a loop. ...
    (php.general)
  • Deleting lines with a variable.
    ... In my macro I want to delete some lines depending on a test. ... I loop through some lines and do a check whether to delete the line. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: passing variable to regular expression (PERL)
    ... Regular Expression ... now i shall loop the complete data which is in $Result SOMETHING ... cccccccccccccc} depending on ...
    (comp.unix.shell)
  • Re: WAIT... why?
    ... Depending on how getNextIndexIntoWavetableworks it looks like you could split the loop into two threads. ... Left & right channel threads and wait for both before returning, that mixed with any possible fpu improvements the others come up with could add up to quite a bit. ... Always assume I'm posting without coffee. ...
    (borland.public.delphi.language.basm)