Groups | Search | Server Info | Login | Register
Groups > comp.programming > #3845
| From | Gordon Burditt <gordon.k8jfw@burditt.org> |
|---|---|
| Newsgroups | comp.programming, comp.lang.c.moderated |
| Subject | Re: Any ideas for writing a decoder? |
| Date | 2011-02-01 16:27 -0600 |
| Organization | Usenet Fact Police |
| Message-ID | <clcm-20110131-0001@plethora.net> (permalink) |
| References | <clcm-20110124-0011@plethora.net> |
Cross-posted to 2 groups.
> I've got a small program(almost like a new algo) > for lossy data. > > I need to develop a small color program in C. That's about as clear a description as describing a program that tracks a (USA) presidential election as a "donkey and elephant program". For that matter, the presidential election tracker could be called a "small color program" (red states and blue states). > I mean lets see this example.. > > A N-Channel color Palette, where it can display colors > appropriate to given color values. That sounds like *hardware*: you need a color display. > so that I can able to scan the color values(row by row) That sounds like *hardware*: you need a camera or scanner. Or did you plan to use existing image file formats as input? What file formats? > to get a Perception of Image . Does that imply Artificial Intelligence? I thought Perception was something humans (or animals) did. > Any ideas how to start writing a color palette? You make a list of the RGB values for some colors. (Which colors? The ones you want to use in an image.) Some image formats contain this list; for others, if you need it at all, you have to figure out what colors are used. Formats that support arbitrary use of 16 million colors may not have a pallette per se; the list is simply too long. Was there something specific you wanted for this color palette? Like "pick the best 8 colors to represent this image"? There are some programs in the "netpbm" toolkit (Google it) for manipulating images that can reduce the number of colors in an image (with minimal damage to the appearance) and convert between lots of image formats. However, this toolkit deals with image files but doesn't scan or display them. Also take a look at The GIMP if you want a GUI image editor. > or Is it possible to find ready made libraries for this job? What job? You're asking questions about as vague as: "I have an employment-related job for you. How long will it take you to do it?" You don't say whether this is mowing the lawn (once) or implementing Obama's health care program, which probably will take decades for hundreds of thousands of people, and have a lot of tasks that go on indefinitely (or until it gets repealed). > Any pointers how to boot up this would be very, very helpful..! If you're planning on having this thing run without an OS, you've got a lot of work to do! First, figure out what it is you want this program to do, in the form of a short description that someone else can understand. Identify inputs and outputs of images for the program (files? live cameras? displays?) Example: "I want a program to examine a recorded movie (DVD format), determine what colors it uses, and change all the obscene colors to black, and output the censored movie. What constitutes an obscene color is defined in MPAA document #3, and essentially means all skin tones of every human or near-human, including those blue Orion women in Star Trek." Or: "I want a program to convert a pornographic movie as recorded on a DVD to one that will get a specified MPAA rating." (How you create a G-rated (not PG-rated) version of, say, "Deep Throat" or even "Sex and the City" would seem to be a problem.) Pure C does not deal with hardware and system-dependent things such as graphics displays and scanners; you'd need to use hardware-dependent and system-dependent code. What platform were you planning on using? -- comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must have an appropriate newsgroups line in your header for your mail to be seen, or the newsgroup name in square brackets in the subject line. Sorry.
Back to comp.programming | Previous | Next | Find similar
Re: Any ideas for writing a decoder? Gordon Burditt <gordon.k8jfw@burditt.org> - 2011-02-01 16:27 -0600
csiph-web