| Author |
Message |
|
|
as tfecw said, it is indeed the Computer Science A Advanced Placement test. there is CSAB as well, but that's next year . by the way, i didn't need the link to the MBCS because we're going over it in class, but i appreciate the thought. i was just wondering who's taken the test.
|
 |
|
|
has anyone taken the CSA AP test? right now, i'm in a CSA class and i'll be taking the test in about a month. i'm just wondering how difficult it is and whether people have any experience with the Marine Biology Case Study that will be on the test this year.
NOTE: this is not a thread to ask for assistance of any kind on the test. it's just for me to get a feel of how much i should prepare for it.
|
 |
|
|
|
as i was browsing the code in the GrabandFadewithRasters file, i realized that it doesn't really explain very well how to use the PixelGrabber class. what i want to do is use PixelGrabber to get the color of each pixel and store the colors in an array to be used later. if anyone could explain how to do this, my life would be so much easier. thanks.
|
 |
|
|
|
ok, i love the help, but i can't really understand some of that code. it all works and makes some sense, but i'm not entirely sure what the items in int[] bandmasks mean. honestly, though, i'm not as worried about it now as i was before because about 15 minutes ago i found a nice way of doing what i was going to do using only the PixelGrabber and Color classes. all i need to do is find the exact color of each pixel in an Image and determine whether to classify it as "black" or "white". through this, i plan to create an input stream of 0's and 1's to feed into my OCR neural network program. the program should then, theoretically, learn to recognize that particular input stream as a specific letter. after "teaching" my program several different variations of letters and every letter in the alphabet, i'm going to run it in a "recognize and learn" mode. in this mode, the program should teach itself unrecognized input streams and clarify with the "teacher" whether or not the letter it assigned to the input stream is valid. if it is, the program will remember that particular input stream as the letter it determined, but if not, then the program will discard the information and wait for further instruction.
|
 |
|
|
i was planning to use only the BufferedImage class, but it turns out i need to use the Raster class to do so. however, in order to use the Raster class, i also need to use the SampleModel and DataBuffer classes. it seems that i've run into the same problem as before. i can't instantiate the SampleModel class as it's abstract, but i can use the SinglePixelPackedSampleModel class, which is a subclass of SampleModel. in order to use this class, i need to pass in an int[] referring to the bitmasks for the particular pixels (or so i've been led to believe). i posted another thread about the bitmask problem here. thanks for any helpful comments.
EDIT: i've decided to use only the PixelGrabber class (and associated classes) along with the Color class to determine the color of each individual pixel. i have a fairly full description of what i intend to have my program do in the above linked thread.
|
 |
|
|
|
i'm trying to use the SinglePixelPackedSampleModel class for a project, but i can't really decipher what to enter in the constructor for int[] bitMasks. i'm looking for both a broad definition of a bitmask and what exactly to use in this particular situation. any help would be greatly appreciated as this project is for school.
|
 |
|
|
|
ah, wonderful job with the search terms! first hit had something useful. it seems that the most probable way to go about this is to use the BufferedImage class's getRGB method. you really were spot on with that, and i may just rethink the way i'm doing this.
|
 |
|
|
|
ok, just so everyone's aware, this is for my final project in my comp sci class. i'm designing an OCR program and i need to figure out how to navigate an image fed into the program and find the color of each pixel and store it in a 3D array. i was planning to use the Raster, DataBuffer, and SampleModel classes, or a subclass thereof, but i'm not entirely sure how to use them. if anyone has any ideas or suggestions, any help is greatly appreciated.
|
 |
|
|