Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2024

Extract RGB values from image

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ingo Thies <ingo.thies@gmx.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Extract RGB values from image
Date Mon, 09 Sep 2013 15:18:46 +0200
Lines 31
Message-ID <b9605mF1vhuU1@mid.individual.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace individual.net XR/zklLjhBRUaa6CsaSVsAC62q4ke25AkoITLiUNGjwxg/fMfT
Cancel-Lock sha1:g0qj7ik37ZP+1IdTsHZpCQFddLE=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8
Xref csiph.com comp.graphics.apps.gnuplot:2024

Show key headers only | View raw


Hi all,

I am trying to extract RGB values from images via binary input and "set
table":

set table 'testimage.asc'
plot 'someimage.jpg' binary filetype=jpg with rgbimage
unset table

However, gnuplot refuses to write out the RGB values, and instead I only
get something like

# x y type
 0  276  i
 1  276  i
 2  276  i
 3  276  i
 4  276  i
 5  276  i
 6  276  i
 7  276  i
 8  276  i
...

Is there a way to write out the RGB values (maybe as hex strings) for
each pixel?

Best wishes,

Ingo

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Extract RGB values from image Ingo Thies <ingo.thies@gmx.de> - 2013-09-09 15:18 +0200
  Re: Extract RGB values from image sfeam <sfeam@users.sourceforge.net> - 2013-09-09 10:18 -0700
    Re: Extract RGB values from image Ingo Thies <ingo.thies@gmx.de> - 2013-09-11 11:39 +0200
      Re: Extract RGB values from image sfeam <sfeam@users.sourceforge.net> - 2013-09-11 11:08 -0700
        Re: Extract RGB values from image Ingo Thies <ingo.thies@gmx.de> - 2013-09-11 21:36 +0200
          Re: Extract RGB values from image Ingo Thies <ingo.thies@gmx.de> - 2013-09-16 09:02 +0200

csiph-web