Giter Site home page Giter Site logo

hqnx-noaa.net's Introduction

No AntiAliasing HQ2nx upscaling filter

This was coded with C# initially for Unity3D and then adapted for C#.net due to low dependency on Unity. It can be compiled with .net sdk 5 using dotnet build or dotnet run in the my-app folder throught the command line.

It builds a command line application that scales a preexisting image and saves the scaled image either as one bigger image or as several chunks with the same size as the original image.


This is one module of a series used on Unity3D to generate island meshes. Other modules adapted for C#.net can be seen in the following links:

The following modules use Unity

(more links will be added as soon as the modules are ported onto C#.net or made presentable in Unity).

The full Unity Project can be followed here


This module scales the image by doubling its size a given number of times. The maximum number of times it may be at once has been set to 4 resulting in an image 256 times (16x16) larger than the initial one.

It is based off of the original HQx filter and the code used as reference can be found here. The main difference is that the resulting image uses only the colors available in the original image with the purpose of smoothing its borders between colors.

The results of scaling an image up using this method can be seen in the immages available in the following table:

Base image saved as a saved as
Scaled 2x single image multiple images
Scaled 4x single image multiple images
Scaled 8x single image
Scaled 16x single image multiple images

Another example in the following images:

  • Base image (full image + zoomed to a specific area)
base zoomed base
  • Image scaled 16x (full image + zoomed to the same area)
scaled 16x zoomed scaled 16x

hqnx-noaa.net's People

Watchers

Bruno R.C. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.