mcjDenoise
________________________________________________________________________
Introduction
________________________________________________________________________
This script lets you use the image de-noising abilities of Intel[TM]'s Open Denoise Utility
Since this app only accepts images in .pfm format, the services of Imagemagick-convert are also used.
________________________________________________________________________
Installation
________________________________________________________________________
install the appropriate Precompiled Open Image Denoise Binary Package for your computer.
HERE: https://openimagedenoise.github.io/downloads.html
I only tested for my Windows10 PC
Open Image Denoise binaries precompiled for 64-bit as a ZIP archive: oidn-0.9.0.x64.vc14.windows.zip
For a mac you should get
For macOS we provide Open Image Denoise as a TGZ file: oidn-0.9.0.x86_64.macos.tar.gz
Place the files in any folder where your OS allows execution
In the case of the PC version, the file we will need to locate later is denoise.exe in the 'bin' sub-folder
---
Install the imagemagick utilities
https://imagemagick.org/index.php
In the case of a PC the file we will need to locate later is convert.exe
The way i installed mine it's in c:\imagemagick but yours may be in c:\Program Files\ImageMagick\
________________________________________________________________________
Version History
________________________________________________________________________
January 26th 2021 10:35 pm the alpha option introduced a problem so this fixes the txtConvert3 issue when the alpha transfer option is not used
January 24th 12:32AM - New checkbox to transfer the opacity/transparency/alpha layer of the input image to the denoised image
January 23nd 2021 2:00PM SORRY i forgot a closing quote at line 78 of the mac version which prevented it from working
January 21st 2021 4:14 PM SORRY the converter in the previous version was hard wired for my imagemagick which is the opt/ folder
January 21st 2021 2:01 PM There's a new version for Macs, which uses .command files with execute permissions and no quotation marks for the process arguments
January 19th 2021 15:15 the file type for imagemagick and Intel Open Denoise was changed from (*.exe) to "Any File" for MAC issues with opendenoise which is extensionless
July 24th 2019 08:43 - fixed 2 bugs around line related to the new jpeg quality code
July 23rd 2019 17h20 - Jpeg quality control added, PNG bit-per-pixel control added
July 16th 2019 16h03 - denoise was unable to overwrite temp_out.pfm file so the script deletes old ones
June 22nd 2019 11:06 - v3 - added a checkbox to auto name the output image
JUN 21, 2019, 11:49 AM - V2 - CORRECTED A BUG PREVENTED THE PROGRAM FROM STARTING
June 21st 2019 7:00AM - V1 - Release
________________________________________________________________________
Instructions
________________________________________________________________________
This script requires the intel(TM) Open denoiser and imagemagick's convert utility.
so if you skipped the Installation section, go back and read it.
Run the script, no need to select anything in the scene.
The first time you run the script click the [Browse] button for "Path to Imagemagick convert"
and select ImageMagick's convert.exe utility. in my case it's
C:/imagemagick/convert.exe
The first time you run the script click the [Browse] button for "Path to Intel denoise: "
and select the denoise.exe utility. in my case it's
F:/inteldenoyz/oidn-0.9.0.x64.vc14.windows/bin/denoise.exe
In the left pane, select a rendered image you wish to improve
If the image is part of a series of numbered images, the number of images
in that series will be displayed in the lower left corner of the script interface.
Click on the [ Apply / Create Output Image ] button to denoise only that one image
Click on the [ Apply / Create Whole Sequence ] button to denoise all the images in the series
Behind the scene, the script creates a command/batch file in your Daz Studio Temp folder
The Intel denoiser only accepts to denoise .pfm formatted images, the command/batch file
may invoke Imagemagick's conversion utility if your image files are not in .pfm format
The script will only overwrite existing output files if you use the [Allow Overwriting Output File] check-box
- if your input image is hdr, check-mark the [Input image is HDR] checkbox
- if your image uses sRGB gamma curves, check-mark the [Input image is sRGB] checkbox
Advanced options
The [Use Albedo] and [Use Normal] check-boxes let you enable the denoiser use of those maps.
if you use the albedo or normal maps options, note that the albedo and/or normal maps must be in the same format as the source/color image/map. Also the files must be in the same folder as the source/color image. Also the files must have the same basename as the source/color image with the appropriate ( _nrm or _alb ) suffix
so for example
- color map C:\mypics\myImage.png
- albedo: C:\mypics\myImage_alb.png
- normal : C:\mypics\myImage_nrm.png
July 23rd 2019 17h20 - Jpeg quality control added, PNG bit-per-pixel control added
Tip for tough-cookie denoising
when i tried using mcjDenoise to de-noise this image, sections of the image didn't get denoised. So, i made an image named myimage_alb.jpg which is a copy of myimage.jpg, then i gaussian filtered it 2 pixels-wide then i de-saturated it almost entirely, i say almost because if you make it B/W your paint program may save it as a B/W jpeg. then i told mcjDenoise that, yes i wanted to use the albedo image, And last but not least, i clicked on the "input image is sRGB" checkbox https://sites.google.com/site/mcasualsdazscripts9/mcjdenoise
License
// You can use this script freely for personal or commercial use.
// You may not sell, resell, sub-license or rent this script in any way.
// you may credit this script to mCasual/Jacques
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
__________________________________________