⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage

📁 a small program by Yuval Fisher that has gone a long way to revealing some of the secrets of fracal
💻
字号:
This is a very brief note on usage of enc.c and dec.c.FILE TYPE:First, the input file to enc must be raw bytes which are notreferences into a color lookup table. The image size mustbe even. A typical calling sequence for a 256x256 image is:enc -t 10 infile.raw outfile.trnTHE TOLERANCE FLAG:A range of 4-20 is reasonable for the -t flag, with small valuesgiving good fidelity at poor compression and vice versa. INPUT IMAGE SIZE:The -M flag controls the size of the smallest image pieces that arecompared for self similarity. The following table gives the valuethat should be used:Smallest Input Image Dimension                  -M value--------------------------------------------------------   128                                            5   256                                            6 (default)   512                                            7 etc.Using too large a -M will cause the program to warn you that it doesn't make sense to do that (the resulting compression willbe poor); using too small a -M flag will cause the resulting fidelityto be poor (often, but not always). For (say) 512x512 images the calling sequence is:enc -t 10 -M 7 -w 512 infile.raw outfile.trnThe -M flags should probably be automatic; oh well. DECODING: The decoding call is:dec outfile.trn outfile.outwhich creates a raw byte image outfile.out. The outputfile can be scaled with the -f flag. dec -f 2 outfile.trn outfile.out will result in an outputfile that is twice as big as the input. -----Good luck; thanks for your interest. Yuval Fisheryfisher@ucsd.edu

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -