hq2x, hq3x, hq4x scaling algos into imagemagic?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Alcareru

hq2x, hq3x, hq4x scaling algos into imagemagic?

Post by Alcareru »

Has that idea ever crossed your minds? I have a feeling many people are using imagemagick to preprocess their image data for OCR purposes and this also often means scaling the image up. From my experience the hqx algos work better than anything imagemagick has to offer, for upscaling low qualtiy text images to be processed by tesseract, though it might just be a coincident (the differenc isn't huge but it is there). Implementing them should be very simple process as I read:
ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.
So just get the sources (licence is GPL) from: web archive: hiend3d and integrate to IM. So what say you?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: hq2x, hq3x, hq4x scaling algos into imagemagic?

Post by magick »

The GPL license would add additional conditions to the ImageMagick distribution that are incompatible with our goals. We might be able to support the algorithm if you have a pointer to a description of the algorithm that we code from scratch or if you find an implementation with a BSD license.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: hq2x, hq3x, hq4x scaling algos into imagemagic?

Post by anthony »

the scale 2X and 4X is clearly defined in...
http://scale2x.sourceforge.net/algorithm.html

The information of hq3x has disappeared... trying wayback machine...
Yeap it was archived...
http://web.archive.org/web/200802082151 ... /hq3x.html
But this does not give the algorithm this method is using :-(
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply