My Assistant
Numbers to Pixels |
Jan 7 2009, 01:10 PM
Post
#1
|
|
|
Founder ![]() ![]() ![]() ![]() Group: Chairman Posts: 14457 Joined: 8-February 04 Member No.: 1 |
I've got a few .tab's from the PHX Lidar
Basically - after playing with it for a while, I'll end up with a spreadsheet of values. Each column being one sample 30s apart - each row being a different altitude. Does anyone know a means of taking a CSV or similar, and turning it into a small image with pixel brightness representing the values from the CSV? I've thought of one technique using conditional formatting in Excel - but it probably wont work very well |
|
|
|
![]() |
Jan 7 2009, 05:39 PM
Post
#2
|
|
|
Member ![]() ![]() ![]() Group: Admin Posts: 978 Joined: 29-September 06 From: Pasadena, CA - USA Member No.: 1200 |
I've got a few .tab's from the PHX Lidar Basically - after playing with it for a while, I'll end up with a spreadsheet of values. Each column being one sample 30s apart - each row being a different altitude. Does anyone know a means of taking a CSV or similar, and turning it into a small image with pixel brightness representing the values from the CSV? I've thought of one technique using conditional formatting in Excel - but it probably wont work very well I'm lazy and cheap. I use the PGM format and then convert it to whatever format I need to distribute. Here's a crude way of generating an image from your data: 1) save the data table as text, no commas, just spaces between the data values. 2) using your favourite editor, edit the file and add at the top of the page: P2 <sizex> <sizey> <maxval> where the <sizex> and <sizey> indicate the number of columns and rows in your table and <maxval> should be the maximum value in your table (needs to be less than 65535). 3) use your favourite image conversion tool to convert the image to whatever format you prefer. I use the netpbm set of tools or xv (hey I know, I'm old!). Note that all the numbers need to be integers. Here's an example of a PGM image: P2 3 4 11 0 1 2 3 4 5 6 7 8 9 10 11 Hope this helps -------------------- Disclaimer: all opinions, ideas and information included here are my own,and should not be intended to represent opinion or policy of my employer.
|
|
|
|
djellison Numbers to Pixels Jan 7 2009, 01:10 PM
jamescanvin My terrain mapping (and in fact my MER image proc... Jan 7 2009, 01:23 PM
djellison This is what I've managed so far
Using LS003... Jan 7 2009, 01:29 PM
ElkGroveDan It sounds like the kind of thing I was learning to... Jan 7 2009, 02:39 PM
djellison Next step - doing it greyscale - for the two diffe... Jan 7 2009, 02:58 PM
lyford Brilliant! Jan 7 2009, 04:36 PM
sci44 QUOTE (RoverDriver @ Jan 7 2009, 05:39 PM... Jan 7 2009, 07:37 PM
stewjack QUOTE (djellison @ Jan 7 2009, 08:10 AM) ... Jan 7 2009, 06:12 PM
imipak Doug, could you post the CSV data? I was half-way ... Jan 7 2009, 07:55 PM
sci44 QUOTE (imipak @ Jan 7 2009, 07:55 PM) (Ed... Jan 7 2009, 10:17 PM
djellison Kudos to Card-Carying lurker Pete He pointed me... Jan 7 2009, 09:34 PM
lyford *sigh*
just like old times Jan 8 2009, 02:08 AM
4th rock from the sun Interestingly, the relation between the visible nu... May 25 2009, 02:33 PM
vk3ukf Love the pic of the guy with the crayons, I found ... May 24 2009, 09:13 AM
djellison I think they had only a few colours - so they brac... May 25 2009, 02:44 PM
4th rock from the sun I looked again to the close up image where the num... May 26 2009, 10:37 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 13th December 2024 - 08:31 PM |
|
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |
|