IPB

Welcome Guest ( Log In | Register )

shape from shade, so i do not take over Bjorn's
JohnVV
post Apr 7 2010, 04:03 AM
Post #1


Member
***

Group: Members
Posts: 834
Joined: 18-November 08
Member No.: 4489



So that i do not take over his nice thread i figured i would start a new one
I am just figuring it out so bear with me
Rhea
This is a example - very early example
http://www.shatters.net/forum/viewtopic.php?f=5&t=15847

one that i am going to redo .
the program i am using "Cyclops" has a few bugs

Enceladus
this is a good example a bit better than the above



the close ups are a 8k level 3 VT with and without a texture over it
then a 4k level2 vt

unfortunately i still have to figure out a bug .I need to run a highpass on it ( the 32 bit isis dem )
Cyclops exports to a 3d *.ply this is easy to export to a isis cub
and i get this ( this happens when i combine 16 smaller images into one big one )
and this example is at 1/2 size


Just a bit of a bug !!!

Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
JohnVV
post Jan 15 2018, 06:13 AM
Post #2


Member
***

Group: Members
Posts: 834
Joined: 18-November 08
Member No.: 4489



just a update on a rather old thread
i was asked about using SFS
starting image of Ceres PIA21750
Attached Image


a 8 bit copy of the 32 bit float image
Attached Image


and a hillshade using GDAL
Attached Image


yes i am using the same old mini.cpp
-- link
https://drive.google.com/file/d/1v_y_rmCC6p...iew?usp=sharing

contains the original readme and the paper in pdf format along with the PIA21750 image
REQUIRES g++3.3 to build !!!

i also use a bash script to automate the multi resolution i use
a 1024x1024 , a 512x512,a 256x256 and a 128x128 images
this script uses
GDAL and G'Mic ( the TERMINAL VERSION of gmic)
CODE
#!/bin/bash

gmic PIA21750.pgm -resize 128,128 -split_freq 10% -n[1] 0,1 -o[1] 128.tif
gmic PIA21750.pgm -resize 256,256 -split_freq 10% -n[1] 0,1 -o[1] 256.tif
gmic PIA21750.pgm -resize 512,512 -split_freq 10% -n[1] 0,1 -o[1] 512.tif
gmic PIA21750.pgm  -split_freq 10% -n[1] 0,1 -o[1] 1k.tif

gdal_translate -of EHdr -ot Float32 128.tif 128.raw
gdal_translate -of EHdr -ot Float32 256.tif 256.raw
gdal_translate -of EHdr -ot Float32 512.tif 512.raw
gdal_translate -of EHdr -ot Float32 1k.tif 1k.raw

mini_sfs 1k.raw 2 35 95 2 66 2 c_dem
gmic c_dem1.raw,1024,1024 -split_freq 3% -n[1] 0.1,0.9 -o[1] 1kc.tiff

mini_sfs 512.raw 2 35 95 10 125 2 512_dem
gmic 512_dem1.raw,512,512 -resize 1024,1024 -blur 3 -split_freq 4% -n[1] 0.05,0.95 -o[1] 1k_512.tiff

mini_sfs 256.raw 2 35 95 10 200 2 256_dem
gmic 256_dem1.raw,256,256 -resize 1024,1024 -blur 4 -split_freq 5% -n[1] 0.05,0.95 -o[1] 1k_256.tiff

mini_sfs 128.raw 2 35 95 25 600 2 128_dem
gmic 128_dem1.raw,128,128 -resize 1024,1024 -blur 5 -split_freq 6% -n[1] 0,1 -o[1] 1k_128.tiff

gmic 1kc.tiff 1kc.tiff 1k_512.tiff 1k_256.tiff 1k_128.tiff -blend add -div 5 -n 0.1,0.9 -o HeightMap.tiff

gdaldem hillshade -z 40 -az 95 -alt 35 -compute_edges HeightMap.tiff hillshade.tiff

# this line below can be undocumented after a good test
# rm 128.tif 128.hdr 256.tif 256.hdr 512.tif 512.hdr 1k.tif 1k.hdr 128.raw 128_dem.hdr 128_dem1.raw 256.raw 256_dem.hdr 256_dem.hdr 256_dem1.raw 512.raw 512_dem.hdr 512_dem1.raw 1k.raw  1kc.tiff 1k_512.tiff 1k_256.tiff 1k_128.tiff c_dem.hdr c_dem1.raw 128.raw.aux.xml 256.raw.aux.xml 512.raw.aux.xml 1k.raw.aux.xml


now this is important !!!
the way i make the height map looses ALL real height information
only the RELATIVE data is there . If it looks twice as high and something in the image it is likely about twice as high but there is NO height in meters information
Go to the top of the page
 
+Quote Post

Posts in this topic
- JohnVV   shape from shade   Apr 7 2010, 04:03 AM
- - JohnVV   making progress started with N1500060254_2.img r...   Apr 8 2010, 12:27 AM
- - 4th rock from the sun   Nice bump maps ! I have already suggested som...   Apr 8 2010, 02:53 PM
- - JohnVV   right now i am working on Dione i have a list of f...   Apr 13 2010, 07:26 AM
- - JohnVV   just an update this is a TESTING only 100% auto t...   Apr 17 2010, 03:42 AM
- - Bjorn Jonsson   This looks very impressive, there is some loss of ...   Apr 27 2010, 12:41 AM
- - JohnVV   hi Bjorn at this point i am just using a default ...   Apr 27 2010, 03:58 AM
- - JohnVV   only 3 show so a link to the photo album http://w...   Apr 27 2010, 04:22 AM
|- - Bjorn Jonsson   I have now tested Cyclops a bit. The first test ru...   Apr 29 2010, 09:26 PM
- - JohnVV   i am calling it a "bug" because i am doi...   Apr 30 2010, 02:06 AM
- - JohnVV   while i am starting to put together an ISIS contro...   May 3 2010, 04:33 AM
|- - Bjorn Jonsson   QUOTE (JohnVV @ May 3 2010, 04:33 AM) if ...   May 4 2010, 02:28 PM
- - JohnVV   at the end will be a link to the folder newbump.ta...   May 6 2010, 06:16 AM
- - JohnVV   five more and most likely the last until i find wh...   May 8 2010, 08:42 PM
|- - Bjorn Jonsson   Thanks - I'll take a look at these files soon....   May 8 2010, 10:27 PM
- - JohnVV   first the gimp Gmic filter( was called Graystratio...   May 9 2010, 04:02 AM
- - JohnVV   a bit of a change - the below will create a ...   May 13 2010, 06:42 PM
- - JohnVV   2) removing the curvature yes one or two meshes c...   May 13 2010, 08:01 PM
- - Sajid   Interesting work you are doing. Where did you fi...   May 13 2010, 08:20 PM
- - JohnVV   3) convert the hipassed normal to a mesh then to ...   May 13 2010, 08:39 PM
- - JohnVV   4) -- optional -- i like to normalize and convert ...   May 13 2010, 11:46 PM
- - JohnVV   an update just a "testing " shot with...   May 28 2010, 12:07 AM
- - Bjorn Jonsson   Looks very promising despite the 'terraced...   Jun 6 2010, 09:05 PM
- - JohnVV   QUOTE Looks very promising despite the 'terrac...   Jun 7 2010, 03:02 AM
- - 4th rock from the sun   I've programed a simple SFS implementation in ...   Sep 2 2010, 01:16 PM
|- - AndyG   Very nice! ActionScript, huh? Smarty-pants...   Sep 2 2010, 01:52 PM
|- - 4th rock from the sun   Thanks! I'm reading the image as a raste...   Sep 2 2010, 10:17 PM
- - JohnVV   the main problem has been with non optimal images ...   Sep 2 2010, 11:24 PM
- - JohnVV   just a bit of an update stereo is by far better ...   Feb 1 2012, 05:04 AM
|- - volcanopele   QUOTE (JohnVV @ Jan 31 2012, 10:04 PM) th...   Feb 1 2012, 06:11 AM
- - JohnVV   a height map but that spot IS an artifact from Sh...   Feb 1 2012, 06:53 AM
- - JohnVV   for now i have dropped the hyperionCV sfs in favor...   Apr 17 2012, 09:03 AM
- - JohnVV   just a update on a rather old thread i was asked ...   Jan 15 2018, 06:13 AM


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 11th December 2018 - 06:36 PM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and 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 a project of the Planetary Society and is funded by donations from visitors and members. Help keep this forum up and running by contributing here.