Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java color recognition

Name: Anonymous 2007-07-09 10:02 ID:5UZiP+hy

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: Anonymous 2007-07-09 10:09 ID:dTJ45VTA

._. obey me

Name: Anonymous 2007-07-09 10:11 ID:5UZiP+hy

>>2
Ok, if you tell me this color recognition thing

Name: Anonymous 2007-07-09 10:12 ID:Heaven

>>2
.[u][s][o]/[/o][/s][/u]. dont listen to this impostor

Name: Anonymous 2007-07-09 10:12 ID:Heaven

.[u][s][o]/[/o][/s][/u].
test

Name: Anonymous 2007-07-09 10:13 ID:ACCjR4u2

Do your own homework

Name: Anonymous 2007-07-09 10:13 ID:Heaven

.[u][s][o]/\[/o][/s][/u].

the fuck wordl4ch.

Name: Anonymous 2007-07-09 10:14 ID:Heaven

./\ .

Name: Anonymous 2007-07-09 10:17 ID:5UZiP+hy

>>6
Nevertheless, at least a guideline would be nice - google hates me.

Name: Anonymous 2007-07-09 10:17 ID:Heaven

>>9


               ,-._,-._             .----------------------------------.
            _,-\  o O_/;            | OpenBSD! The proactively secure  |
           / ,  `     `|            |  operating system! ...           |
           | \-.,___,  /   `        |        FOR ME TO PISS ON!        |
            \ `-.__/  /    ,.\      `----------------------------------'
           / `-.__.-\`   ./   \'
          / /|    ___\ ,/      `\
         ( ( |.-"`   '/\         \  `
          \ \/      ,,  |          \ _
           \|     o/o   /           \.
            \        , /             /
            ( __`;-;'__`)            \\
            `//'`   `||`              `\
           _//       ||                ;
   .-"-._,(__)     .(__).-""-.         `
  /          \    /           \       '
  \          /    \           /        `
   `'-------`      `--------'`         ;

Name: Anonymous 2007-07-09 10:42 ID:PO3+Bv9q

>>10
shutup suave mouse dick frog lisp

Name: Anonymous 2007-07-09 15:45 ID:5UZiP+hy

come on anon, I will give you ascii pron? (Damn, not an imageboard)

Name: Anonymous 2007-07-09 18:36 ID:RBUz11wf

This is what's wrong with programming in the world today: lack of basic understanding of logic and hierarchy. For example:

>>1
"I happen to have a map, and it has 24 colors in it"

Okay. Map consisting of colors. Check.

"I want to store the pixels"

What pixels? Where are these pixels coming from? What do they have to do with the Map of colors?

"having different colors"

Different from:

Each other?
From the colors in the map?
From some other unexplained source?

Name: Anonymous 2007-07-09 18:45 ID:XgH0YanU

>>13
The map has pixels. I want to store each pixel according to its color, which are different from each other.

This is what's wrong with the world today: people can't make even the simplest deductions.

Name: Anonymous 2007-07-09 18:48 ID:jFuAoWGO

>>14
You mean just saving the image to a palettized file?

Name: Anonymous 2007-07-09 19:17 ID:XgH0YanU

>>15
Storing every single x,y coordinate in arrays.

Name: Anonymous 2007-07-09 19:35 ID:MyYCjrPx

So if you know what to do, how about just doing it, instead of fagging up /prog/?

Name: Anonymous 2007-07-09 20:17 ID:p2hfjOTC

>>14
that's what's wrong with the world today: people can't communicate even what the fuck they're thinking

Name: Anonymous 2007-07-09 20:42 ID:Y5KEd91f

>>18
that's what's wrong with the world today: people can't accept the fact that they're fuckwads and try to shift the blame onto other people.

Name: Anonymous 2007-07-09 21:07 ID:p2hfjOTC

>>19
that's what's wrong with the world today: people can't read ids

Name: Anonymous 2007-07-09 23:15 ID:IjMecWit

>>20
that's what's wrong with the world today: i think i found me a new meme

Name: Anonymous 2007-07-10 3:44 ID:LGk5TQH3

>>21
that's what's wrong with the world today: people stealing my memes the moment i invent them

Name: Anonymous 2007-07-10 4:00 ID:Heaven

"prog. language"
GTFO

Name: Anonymous 2007-07-10 4:24 ID:Pdrnm81i

Java is low-level or mid-level. Anonymous said.

Name: Anonymous 2007-07-10 4:48 ID://tldwXe

>>24
actually java is high level

Name: Anonymous 2007-07-10 5:12 ID:Pdrnm81i

>>25
Java is low-level or mid-level. Anonymous said.

Name: Anonymous 2007-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: Anonymous 2007-07-10 5:26 ID:Pdrnm81i

>>27
I don't care. Java is low-level or mid-level.

Name: Anonymous 2007-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: Anonymous 2007-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.)

Name: Anonymous 2007-07-10 5:53 ID:Heaven

Anonymous has spoken and the results are in: Java is a high-level language.
Thread over.

Name: Anonymous 2007-07-10 6:42 ID:uDNLV32z

low level == low quality == java

Name: Anonymous 2007-07-10 6:45 ID:Heaven

>>25
It must be some misunderstanding...

Java is ENTERPRISE LEVEL.

Name: Anonymous 2007-07-10 7:15 ID:XkbE9HAG

get the rgb values for each and sort them out, what is so fucking complicated?

Name: Anonymous 2007-07-10 7:46 ID:Heaven

get the rgb values for each and sort them out, what is so fucking complicated?

1. it's not enterprise enough
2. expert enterprise programmers don't know anything useful

Name: Anonymous 2007-07-10 9:21 ID:juIhQ/sp

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.

Name: Anonymous 2009-01-14 14:57

Troll detected.

Don't change these.
Name: Email:
Entire Thread Thread List