Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 04:33
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Generating graph values from a scan/picture
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sat 04 Aug 2012, 17:10    Post_subject:  Generating graph values from a scan/picture  

Hi all

Found a very interesting and useful app called G3DATA that
generates values of graphs from pictures.

Available here http://www.frantz.fi/software/g3data.php

(Scroll to the bottom of the page to see some screen shots.)

Perhaps someone can make a .pet for it?
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Sat 04 Aug 2012, 17:27    Post_subject:  

First try....
g3data-1.5.4.pet
Description 
pet

 Download 
Filename  g3data-1.5.4.pet 
Filesize  24.23 KB 
Downloaded  218 Time(s) 
Back to top
View user's profile Send_private_message 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sat 04 Aug 2012, 17:34    Post_subject:  

Hi pemasu

Did not work.
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Sat 04 Aug 2012, 17:35    Post_subject:  

Hmmm....the downloaded pet works in my dpup exprimo. I compiled it in dpup exprimo. So...I cant help more...with my puppy.
Back to top
View user's profile Send_private_message 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sat 04 Aug 2012, 17:44    Post_subject:  

I suspect that the actual binary of G3DATA was somehow not compiled
properly as I can see 6 independent files in the /usr/bin/g3data section
of the pet and they seem to be the different sections that would normally
make up an executable elf.
Back to top
View user's profile Send_private_message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Sat 04 Aug 2012, 18:08    Post_subject:  

You might be right. I got warnings during compilation. They are not rare...but maybe this time they are significant. I attach the log of compile.
I believe someone else needs to try compiling the app. I just checked that the app starts and loads the pic. I didnt try to create any data.
configure-compile-log.gz
Description 
gz

 Download 
Filename  configure-compile-log.gz 
Filesize  16.39 KB 
Downloaded  209 Time(s) 
Back to top
View user's profile Send_private_message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Sat 04 Aug 2012, 20:15    Post_subject:  

I got nowhere trying to compile it into a useable program either.

Not wishing to derail production of a .pet of this,
if that doesn't happen, there is DataThief (java), which I use,
and also PlotDigitizer (also Java), which is useable.
There is also a Web-based WebPlotDigitizer, which I haven't tried.

HTH.
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Sat 04 Aug 2012, 20:45    Post_subject:  

pemasu.

I just tried your pet in Racy5.22; made a plot of a scan, saved a data file, opened it in gnumeric and it graphed quite closely to the original.

Thanks very much,
s
Back to top
View user's profile Send_private_message 
kooliepup


Joined: 13 Jan 2012
Posts: 302
Location: Victoria, Australia

PostPosted: Sat 04 Aug 2012, 21:09    Post_subject:  

I just tried your .pet in Exprimo, and it worked fine, except there are some types of plots it doesn't seem to like.

Well done.
Better than having to use Java.
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11164
Location: Arizona USA

PostPosted: Sat 04 Aug 2012, 21:18    Post_subject:  

Does it do histograms or what? Confused
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sun 05 Aug 2012, 01:15    Post_subject:  

I don't know what this is for , but 1.5.3 compiles on Puppy 4.3. The building of the documentation is problematic for me, because it depends heavily on docbook with all its jade, tex and whatever . My docbook installation works sometimes and sometimes not.

Version 1.5.4 from git depends on automake-1.11 and here i have a big big mismatch everywhere.

Must say i think Dave runs Puppy 4.3 so Exprimo compiles are likely not to work for him.
The .pet of pemasu seems to include everyhing : the binary and probably what Dave calls "6 indeendent files" are the .desktop file for to show up in some menu, the man page and the program's icon .

Another thing are the many shared library dependencies :

/lib/libc.so.6
/lib/libdl.so.2
/lib/libm.so.6
/lib/libz.so.1
/usr/lib/libatk-1.0.so.0
/usr/lib/libcairo.so.2
/usr/lib/libexpat.so.1
/usr/lib/libfontconfig.so.1
/usr/lib/libfreetype.so.6
/usr/lib/libgdk_pixbuf-2.0.so.0
/usr/lib/libgdk-x11-2.0.so.0
/usr/lib/libgio-2.0.so.0
/usr/lib/libglib-2.0.so.0
/usr/lib/libgmodule-2.0.so.0
/usr/lib/libgobject-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libpango-1.0.so.0
/usr/lib/libpangocairo-1.0.so.0
/usr/lib/libpangoft2-1.0.so.0
/usr/lib/libpcre.so.0
/usr/lib/libpixman-1.so.0
/usr/lib/libpng12.so.0
/usr/lib/libX11.so.6
/usr/lib/libXau.so.6
/usr/lib/libXcomposite.so.1
/usr/lib/libXcursor.so.1
/usr/lib/libXdamage.so.1
/usr/lib/libXdmcp.so.6
/usr/lib/libXext.so.6
/usr/lib/libXfixes.so.3
/usr/lib/libXinerama.so.1
/usr/lib/libXi.so.6
/usr/lib/libXrandr.so.2
/usr/lib/libXrender.so.1

where the libX* are manually made links to ../X11R7/lib/ on my installation.

The program exports a file with such content :

Code:
249,49  37,64
293,05  108,92
0,01  61,4


and i am not sure how to use these parameters.
g3data.png
 Description   What is this program for ?
 Filesize   130.56 KB
 Viewed   445 Time(s)

g3data.png

Back to top
View user's profile Send_private_message Visit_website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Sun 05 Aug 2012, 04:08    Post_subject:  

@Karl

The 6 independant files show up as this:
http://postimage.org/image/s2tjh5o75/

These are all in the /usr/bin/g3data section of the .pet
The other files such as man pages, desktop file etc etc are over and above these.
Normally a .pet should include the binary executable as a single file.
I don't know how/why it works on Dpup.

@Flash

If the histograms are plotted on a XY axis, then I don't see why not,
although you might have to manipulate the data further to compensate
for the widths of the rectangles (whose width indicates frequency).
At least you will already have the data in numeric form and might just
need to run it thru another script for further manipulation.
Certainly easier then capturing all the data manually.

@kooliepup

Thanks for the alternatives, I don't like java but if I don't come right with
G3DATA, I will look at the html option.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sun 05 Aug 2012, 22:57    Post_subject:  

Dave, what filebrowser do you use ?

I have checked pemasus's .pet and i don't have the files 0-5 anywhere.

I can only imagine that your favor for Fat filesystem is corrupting things.
Back to top
View user's profile Send_private_message Visit_website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Mon 06 Aug 2012, 15:36    Post_subject:  

Karl Godt wrote:
Dave, what filebrowser do you use ?


For viewing (and not installing .pets) I use 7zip.
It has never failed me.
I always inspect the .pet files I download before installing them.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 06 Aug 2012, 18:45    Post_subject:  

Dave_G wrote:
Karl Godt wrote:
Dave, what filebrowser do you use ?


For viewing (and not installing .pets) I use 7zip.
It has never failed me.
I always inspect the .pet files I download before installing them.


You could try the default
Code:
pet2tgz /path/to/thepet.pet

and run Xarchive on the now created .tar.gz .

7zip uses lzma and xz and apparently libz and i think that pemasu's libs are newer than yours.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1046s ][ Queries: 13 (0.0329s) ][ GZIP on ]