Using the image differencing programme tested out from Kester, I expliot the use of its properties that the image will have a black background after it was differenced out.
Using PixelGrabber from the Java Image API, I was able to get each and every pixel RGB colour from one row of pixels from the image. By running a for loop on each row, I am able to identify which pixel is black or non black.
Using the PixelGrabber, the row of pixels' colour will be stored inside an int array, a black colour will have a value of -16777216, which is equivalent to the value of each RGB colour, 256 for each primary colour. We will use this colour or value to find out the position of each Critical Point as stated in our programme.
Tuesday, September 18, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment