IPB
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

denoising images, denoising images
JohnVV
post Apr 5 2013, 06:37 AM
Post #1


Member
***

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



--- Note to everyone ---
--- feel free to add your own favorite tool to "denoise"


On the Titan thread there is some discussion on "denoiseing "
machi commented that this program did not do well on the SAR data
http://bigwww.epfl.ch/algorithms/denoise/

as a few of you know by now i like a program called "G'Mic" ( was called GREYCstoration )

it works on floating point data natively this is very handy with ISIS3
cubeatt it to a raw with a detached header , clean it , and import it back into isis all in float format

machi was using the jpg'ed version of BIUQI03N158_D167_T044S01_V02.IMG with "PureDenoise"
to use the example on there page and the pds image

first the "example on the PureDenoise web site

the noisy one
http://bigwww.epfl.ch/algorithms/denoise/i...mple-noisy1.png
there "clean one
http://bigwww.epfl.ch/algorithms/denoise/i...xample-den1.png

first the " Hot pixel " removal
this is a good example for "salt and pepper" noise
--- from the "gmic -h ( help option )
QUOTE
-remove_hotpixels:
_mask_size>0, _threshold[%]>0

Remove hot pixels in selected images.
Default values: 'mask_size=3' and 'threshold=10%'.



CODE
gmic Example-noisy1.png -type float  -remove_hotpixels 3,3.0% -type uchar -o Example-less.png


the "-remove_hotpixels" tool needs a image to be in float format , hence the "-type float" BEFORE calling the tool
and setting the type to "uchar" ( 0 to 255 ) for saving to a 8 bit png

-- the gallery for the two above
http://imgbox.com/g/k6lYc1wU7l

the original is on the left and the hot pixel removed on the right

the image has a lot of dark area with very bright noise in it

---- the "denoise" option
-- from the "gmic -h " ( help option )
QUOTE
-denoise (+):
std_variation_s>=0,_std_variation_p>=0,_patch_size>=0,_lookup_size>=0,_smoothnes\
s,_fast_approx={ 0 | 1 }

Denoise selected images by non-local patch averaging.
Default values: 'std_variation_p=10', 'patch_size=5', 'lookup_size=6' and 'smoothness=1'.

contrasting this is the SAR t044 image
"BIUQI03N158_D167_T044S01_V02.IMG"

--- a crop to about the same area in the titan thread
this is in 32 bit float so Screen Shots --


CODE
pds2isis from=BIUQI03N158_D167_T044S01_V02.IMG to =BIUQI03N158_D167_T044S01_V02.cub
crop from=BIUQI03N158_D167_T044S01_V02.cub to=crop.cub sample=700 nsamples=1500 line=10000 nlines=3000
rotate from=crop.cub to=crop1.cub degrees=90
isis2raw from=crop1.cub to=crop1.raw omin=0.0

this is a bit better for the "denoise" filter
light gray on dark gray with a lot of noise in every tone range
CODE
gmic -type float crop1.raw,3000,1500  -denoise 9,9,3,4,1 -o crop1.denoise.tiff




the original is on the left and the denoised on the right

for a stronger denoise increase the lookup_size
CODE
gmic -type float crop1.raw,3000,1500  -denoise 9,9,3,9,1 -o crop1.denoise1.tiff



So 9 is a bit too much have a go with a look up size of 6

CODE
gmic -type float crop1.raw,3000,1500  -denoise 9,9,3,6,1 -o crop1.denoise1.tiff




for a bit more highs and lows drop the " std_variation_s and _std_variation_p"
CODE
gmic -type float crop1.raw,3000,1500  -denoise 3,3,3,6,1 -o crop1.denoise2.tiff

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: 13th December 2024 - 08:26 PM
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.