Skip to content

no4ni/scaleSmooth

Repository files navigation

scaleSmooth

Algorithms for most-accurate upscaling image without AI and neural network (gray or color, smooth, rough, furry or contrastBold variants available)


scaleSmooth lets you enlarge and enhance low-resolution images using only math.
Enlarge images and get more quality without losing accuracy (except contrastBoldScale) and hallucinations. It's just math!

scaleSmooth is a windows application on .NET 8.0 on Visual Studio C#, but we'll be glad, if you create your repository of scaleSmooth/scaleRough/scaleFurry for other platforms and languages (write me and I'll attach link to your repository) or commit here updates for optimization, batch, interface or more accuracy.

scaleSmooth is algorithms by sequential calculations, so it's might be very slow (use fast/accurate regulator if it will be needed) and it can't parallelize by many CPU's or GPU, but you can run as many copies as many logical CPU's you have without losing speed.

Threshold, autoThreshold, Mean Cuvatute Blur, Median Blur and other tools, which can help you get more usefull results for your specific needs are NOT included!

🏃 Run

(required Windows 10+ x64, .NET 8.0+)

  • Download release

  • Unpack into any folder

  • Run .exe

🛠 Using in your projects

  • Just copy necessary function (ScaleSmoothGray / ScaleSmoothColor / ScaleRoughGray and s255 / ScaleRoughColor and s255 / ScaleFurryGray and s255 / ScaleFurryColor and s255 / ContrastBoldScaleGray, s255f and s255 / ContrastBoldScaleColor, s255f and s255) (you can harmless remove ProgressBar)
  • Call it with parameters (image as type Image, int scale, int accuracy - where 0 is fast, 100 is accurate)
  • It returns new image as type Image