IPB

Welcome Guest ( Log In | Register )

jpeg artifact "removal", undoing the artifacts
JohnVV
post Aug 21 2011, 09:46 PM
Post #1


Member
***

Group: Members
Posts: 890
Joined: 18-November 08
Member No.: 4489



first it is impossible undo the artifacts in jpeg images
now a lot can be done to synthetically "fix" them

information IS LOST in the jpg compression
yes it went into a black hole BUT the info was NOT conserved on the EH nor passed to a different dimension to be averaged out in the multiverse

-- it's gone --

A test image " Kodak's lenna " --- a industry standard used to calibrate equipment in labs
[attachment=25352:lenna.png]

the eyes and nose are good for showing results ( "g" rated ones )

( the below images are jpg's mad.gif but , oh well . )
the orig. close up

a jpg artifact added ( two saves at 65% 2x2x2x2 )


over the years i have found a few things to do this NOTHING works very very well . However GREYCstoration now Gmic works well , within reason.
http://gmic.sourceforge.net/gimp.shtml

a gimp add on and a bash command line tool .
the gimp tool ONLY works on 8 bit / layer ( 24 bit rgb )
the command line tool works on 8,16 singed & unsinged ,and 32 bit floating point .

warning this only artificially fixes them

for now the gimp tool
i like the "edge preservation flow" pde

and the close up

the artifacts are gone BUT the image is way too smooth
add some noise

a small amount 4 will do

and the close up AND the orig. image


the terminal command
CODE
gmic 4.2.04b.jpg -gimp_edgepreserving_smoothing 0.8,0.5,0.6,2.5,50,10,0,0 -gimp_noise 4,0,0,0,0 -o clean.png

where "4.2.04b.jpg" is the input
and "clean.png" is the output

example from photojournal
PIA14673.jpg
left orig./ right "fix"
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
JohnVV
post Feb 3 2012, 09:58 PM
Post #2


Member
***

Group: Members
Posts: 890
Joined: 18-November 08
Member No.: 4489



hi , maybe but the problem of jpg images is that the original data is already missing from the compression

Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 24th April 2024 - 11:02 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member.