I'm writing a program that loads an image and then apply JPEG
algorithm on it.
I need to apply such algorithm only to a quarter of the image, possibly
selecting which quarter.
I don't really know how to divide in quarter an image in Java: I think
that if I can divide the image in 4 images then I can use each image
as a quarter, and apply the algorithm as I'm doing now on the original
image.
Can someone help me?
Thank you very much, and sorry for my poor english!
Regards,
Re: no lcm in standard library? ... which are comparable to the AMD K6 architecture, branch misprediction... mispredict penalties tilt the algorithm choice in favor of Euclid's ... This implements the binary GCD algorithm which removes the branch ... that it approximates the divide as a 1-bit accurate divide, ... (comp.lang.c)
Re: rules of fixed-point arithmetic ...divide to keep everything fast. ... or you could even use one of the old bit shift divide... used a good old bit shift algorithm.... rather than table lookup, perhaps with simple correction factors / ... (comp.arch)
Re: returning none when it should be returning a list? ... It divide next by the list of previous prime numbers if next ... is not bigger than lim, count up all the times where it's not evenly ... Your basic algorithm as described above sounds workable, ... (comp.lang.python)
Re: returning none when it should be returning a list? ... It divide next by the list of previous ... Your basic algorithm as described above sounds workable, ... the Sieve of Eratosthenesis a relatively simple ... If you want to look further into the subject, see the Primality Test... (comp.lang.python)
Re: diophantine equation 1/x + 1/y = 1/n ... If you want only positive solutions,... of factors of n^2, add 1, and then divide the whole thing by 2. ... plz tell me the algorithm to solve this problem. ...thnkx again .... ... (sci.math)