Page 1 of 1

Mini sfs tool

Posted: 01.04.2021, 06:33
by ILikeSaturn
I compiled and ran the mini_sfs tool by JVV and ran it on the sample image he provided
1kc.tiff
1kc.tiff (4 MiB) Viewed 19095 times

In case preview is broken
1kc.png


anyway here is the compiled exe
mini.exe
(309.2 KiB) Downloaded 975 times

It was compiled in cygwin so you have to install cygwin
If you don't want the cygwin version (you need a dll for it to run) you can download the MinGW version at the bottom

MinGW version (compiled in 64 bit):
mini_sfs.exe
(285.53 KiB) Downloaded 1232 times

32 bit version
mini_sfs32.exe
(278.21 KiB) Downloaded 1083 times

If you want to use it in cmd make sure to put it in PATH.

To use it you need a .raw image file and a .hdr file for it to run.
And if you know to calculate the input values down there you can use those to make it look good.

and here's the help output
(mini is supposed to be mini_sfs)

Code: Select all

Usage:  mini inName inFmt sunElevAngle sunAzimAngle lamda iterNum -d initDemName outFmt outName
    inputs: inName      input image
            inFmt       input image file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
            sunElevAngle  sun elevation angle in decimal degree
            sunAzimAngle  sun azimuth angle in decimal degree
            lamda         tradeoff (regulation) parameter
                          between smoothness and residual(0.4-50)
            iterNum       iteration number (e.g. 50)
            [-d initDem]   the frequencies filtered out
            outFmt      output DEM file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
    output: outName        output DEM file
==============================================


I don't know how to calculate those inputs up there.
I ran the tool again but this time with a image of Dione which created this image:
1kced.png

(probably the reason why the image looks tiled is because I used gmic and gdal for the resizing stuff)
The source image
tethysthing.png
tethysthing.png (41.75 KiB) Viewed 19093 times

and this was the command

Code: Select all

mini.exe tethysthing.raw 2 35 95 2 5 2 tethys_dem

Like I said I don't know how to compute the input values, so I had to use the same values as the example image.
So make sure you don't use the same values as the example image, and maybe try to calculate the values. Or else the DEM will not look good.

Posted: 02.04.2021, 13:39
by trappistplanets
hey i tried
the 32 bit version
but it won't work...
how do i fix this, as you can see i got the dll files it told me i was missing but i am getting this now and idk how to fix this

Posted: 02.04.2021, 17:09
by ILikeSaturn
Where did you get the .dll files? Also please list your system specs, maybe something is incompatible there.
I will recompile the binaries so you don't need some .dlls.

Added after 9 minutes 21 seconds:
Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
mini_sfs.exe
(2.29 MiB) Downloaded 1320 times

The file is big because the dlls are inside there.
Oh and make sure to install G'MIC and GDAL because the tool needs a .raw and .hdr file.
In order to use it you must use cmd or terminal
delete those .dlls and download the new one I compiled.
The result will be different if you install the windows version of G'MIC.

Posted: 02.04.2021, 20:14
by trappistplanets
ILikeSaturn wrote:Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
still asking me for dll files

Added after 3 minutes 54 seconds:
ILikeSaturn wrote:Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
i gave it the 1 dll its asking for
and no error messages
but it opens somthing then it closes instantly (i think its code but idk what it is bc it's only there for like a second so i can't read it) and i am left with what looks like a CMD that i am unable to type in

Posted: 02.04.2021, 21:11
by ILikeSaturn
If you click on it yes a cmd window will pop up but you have to use it with cmd open.
Heres the steps
1. Open cmd (right click to paste text)
2. Go to the exe's folder (cd "C:/Users/kids/Documents/SFS")
3. type this: mini_sfs.exe
4. you should see a help screen like this:

Code: Select all

Usage:  mini inName inFmt sunElevAngle sunAzimAngle lamda iterNum -d initDemName outFmt outName
    inputs: inName      input image
            inFmt       input image file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
            sunElevAngle  sun elevation angle in decimal degree
            sunAzimAngle  sun azimuth angle in decimal degree
            lamda         tradeoff (regulation) parameter
                          between smoothness and residual(0.4-50)
            iterNum       iteration number (e.g. 50)
            [-d initDem]   the frequencies filtered out
            outFmt      output DEM file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
    output: outName        output DEM file
==============================================


Since the static .exe doesn't work I will zip it with the .dlls from MinGW.
And to use it you must have a .raw and .hdr file. Ask JVV for that to help you.

Added after 4 minutes 11 seconds:
Zipped version with all the .dlls from MinGW, and a .bat that you can click on to see the help screen. Since you might have downloaded the dlls from the internet, download and unzip this, and then use it from cmd.
mini_sfs-bin.zip
(1.36 MiB) Downloaded 667 times

Like I said, if you want to use it you must use it from cmd/terminal.

Posted: 02.04.2021, 21:48
by trappistplanets
i am still having struggle with it
is there any alt windows 7 32 bit programs that does the same job as SFS but not so complex stuff just to get it to work?

Posted: 03.04.2021, 12:04
by trappistplanets
hey is it possible for you to compile one that doen't need CMD so i am not cluttering my tabs/task bar with open programs
because normaly i have atlease 2 file explorer pages, 2 chrome pages, gimp, and at times celestia open

Posted: 03.04.2021, 19:42
by ILikeSaturn
hey is it possible for you to compile one that doen't need CMD so i am not cluttering my tabs/task bar with open programs
because normaly i have atlease 2 file explorer pages, 2 chrome pages, gimp, and at times celestia open

Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.

Posted: 03.04.2021, 21:44
by trappistplanets
ILikeSaturn wrote:Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.
okay

if i ever need somthing processed i'll come to you
and do you have discord so i can just DM and talk to you there?

Posted: 16.10.2021, 15:29
by trappistplanets
ILikeSaturn wrote:Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.
what ccode do i put in the CMD to open SFS
sorry if this may be condidered nacroposting

Posted: 16.10.2021, 15:40
by SevenSpheres
trappistplanets wrote:what [code] do i put in the CMD to open SFS

Scroll up a bit and you'll see.

ILikeSaturn wrote:1. Open cmd (right click to paste text)
2. Go to the exe's folder (cd "C:/Users/kids/Documents/SFS")
3. type this: mini_sfs.exe
4. you should see a help screen like this:

Posted: 16.10.2021, 16:49
by trappistplanets
SevenSpheres wrote:4. you should see a help screen like this:
i opened my CMD and tried to open SFS but it does nothing other than open a 2nd cmd and close it a second after it opened

Added after 30 seconds:
onless i am misunderstanding or i missed something

Added after 3 minutes 47 seconds:
also tried typing
cd "C:\Users\kids\Documents\SFS"mini_sfs.exe in the CMD i opened and it says the below
Untitled.png

Posted: 16.10.2021, 21:19
by SevenSpheres
trappistplanets wrote:also tried typing
cd "C:\Users\kids\Documents\SFS"mini_sfs.exe in the CMD i opened and it says the below

It's two commands. Type cd "C:/Users/kids/Documents/SFS", press Enter, type mini_sfs.exe, press Enter.

Posted: 17.10.2021, 18:30
by John Van Vliet
as above you need to " Change Directory" ( the "cd" command )
to the location that the program is in

but i though that windows had by default a " right- click" option to open the terminal in a folder
( this used to be a MS registry hack )

Posted: 17.10.2021, 21:05
by trappistplanets
John Van Vliet wrote:but i though that windows had by default a " right- click" option to open the terminal in a folder
i am in, i gave a PM to ilikesaturn, i am wating for a responce, his responce time is very slow

Posted: 21.10.2021, 06:02
by fyr02
be patient - it takes some time for people to respond

Posted: 22.10.2021, 01:25
by John Van Vliet
trappistplanets

i was looking at the code for HyperionCV/ Cyclops
( you mentioned it on unmanedspaceflight.com)

for a MS Windows build you will need to install MinGW first
and use MinGW to build the program

If you really want to build this 12 year old program just let me know