I happen to have a map, and it has 24 colors in it - I want to store the pixels having different colors (I know the RGB values) - how to do it? Can do it with another prog. language if it is impossible, and then import it somehow to java.
So is it possible, if so - how ?
Name:
Anonymous2007-07-09 10:09 ID:dTJ45VTA
._. obey me
Name:
Anonymous2007-07-09 10:11 ID:5UZiP+hy
>>2
Ok, if you tell me this color recognition thing
>>25
Java is low-level or mid-level. Anonymous said.
Name:
Anonymous2007-07-10 5:15 ID:jhy2WsqW
>>22
This may surprise you, but I actually invented the ``that's what's wrong with the world today'' meme. And that, Anon, is what is wrong with this world to date.
Name:
Anonymous2007-07-10 5:26 ID:Pdrnm81i
>>27
I don't care. Java is low-level or mid-level.
Name:
Anonymous2007-07-10 5:28 ID:jhy2WsqW
Did you even read my post. It had nothing to do with low-level. (Java is High-Level btw, everyone knows that)
Name:
Anonymous2007-07-10 5:44 ID:juIhQ/sp
Every enterprise programmer, every pointy-haired manager and every marketing guy thinks Java is a high-level language, but it lacks key features to be considered so. Despite being an ill-defined term, it can be safely argued that Java is, at most, mid-level.
It's also fairly close to its hardware. The fact this hardware is a virtual hardware is irrelevant. (Otherwise I'll argue that M68000 assembly is high-level when ran through an emulator on a PC.)
Let's suppose img is an array of arrays (to make it simple; it could have been an efficient matrix) of (r, g, b) pixels.
I think what you want is: sorted([((r, g, b), (x, y)) for y in img for x in y])
However, this is not enterprise enough for Java. This line of non-enterprise code probably translates to 40 lines of Java, including a couple of class definitions.