Jump to content
IGNORED

Quantizator


ilmenit

Recommended Posts

emkay:

i have BAT:

r.exe 1.jpg /filter=box /h=200 /pal=laoo.act

 

but i dont see any XEX file

 

A run of RastaConverter will produce a number of output.png.* file. There is a Generator subdirectory in the same place you are running RastaConverter from. Copy or move the output.png.* files to the Generator directory. Change to the Generator directory and run the bat file that is there.

Link to comment
Share on other sites

I got about 10% speed increase by the following procedure: (on Linux)

 

first, compile with -fprofile-generate (add to CXXFLAGS) and link with -lgcov (add to LIBS)

run the resulting rastaconv for about 100k itterations, exit with ESC.

you'll see a bunch of .gcda files appeared in your src directory.

make clean, change -fprofile-generate to -fprofile-use and remove -lgcov from LIBS

make again

 

the resulting binary runs about 10% faster than the original build on my humble AMD 32-bit Sempron 2400+

 

Basically, what g++ does, among other things, is that it logs which codepaths are more likely to be run and uses this information to optimize branch prediction.

 

 

(edit: numbers where against profile-generate build and not against a normal build; still, it's 10% faster)

Edited by ivop
Link to comment
Share on other sites

Have you also access to the Intel compiler? Maybe worth a try... (free for non profit use under Linux)

 

Profile based optimization is also available for Visual Studio, but not in the free Express Edition.

(Of course we could collect money and donate an Intel Compiler for Windows - to have faster builds... ;) )

Link to comment
Share on other sites

I've discovered that if there is a part of the picture that is not getting optimized then it is possible to force changes in that area. Say one part of the picture is a bit brighter than the rest and is being rendered as a large blob of one color. Load the source image up in an editor and darken that part of the image. Save it and continue.

 

Or what if detail lines aren't being made that are possible but the random walk isn't finding them. Again, load the source image in an editor and put some thin black outlines, like one pixel thin, around them. Then continue.

 

Yes this defeats some of the purpose of it being a totally automatic tool but the kinds of edits I'm talking about are simple and nudge results where wanted pretty quickly.

 

I'll post one up in a bit when it has been ground on some more.

Link to comment
Share on other sites

Any idea to resolve this?

 

The right picture is the destination, the left is the ouput.

 

 

post-2756-0-95091900-1336483707_thumb.jpg

 

There still seems a logical error happening.

The black marked region shows it.

 

The error here seems that the converter is deciding "less" changing lines to keep "less"...

In the lower range, where many colour changes happen, the colour on the "sietch" are defined. In the brighter lines.. with actually less changes per lines, it doesn't change the content of the "sietch-stone".

 

If this is solved , pictures could be converted in some minutes.

Link to comment
Share on other sites

Great work... must make those pixels submit! W1, I love that greyscale spider! :E

 

Sometimes, if you have a large flat area of very subtle shading on the brighter or darker end of the spectrum, it helps sometimes to deliberately outline those areas and color reduce them using a dithering pattern. This will sometimes give them a bit more "grit" and contrastyness, giving the program something to bite into. It can wreck the natural detail, of course, so would avoid it most times; but just another idea for the pixel-wrangling toolbox.

Link to comment
Share on other sites

I don't have time to add promised features to RastaConverter yet, but meanwhile here are some nice pictures (Altirra PAL palette)

Great pictures! Wow! Awesome.

 

BTW: Did you went to holiday because all your computers were busy rendering pictures? ;-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...