I hereby claim:
- I am jedypod on github.
- I am jedsmith (https://keybase.io/jedsmith) on keybase.
- I have a public key ASDBugGDFa4HCNdIXyWozTAkJ0tebZtKeW32QRDpwoI09wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /* Create a summed area table in one direction, based on an input image. | |
| In order to create a 2-dimensional summed area table, | |
| you need two copies of the node, the 2nd with col=true | |
| Currently there are issues with precision for higher resolution images... | |
| */ | |
| kernel SummedAreaTable : ImageComputationKernel<eComponentWise> { | |
| Image<eRead, eAccessRandom, eEdgeConstant> src; | |
| Image<eReadWrite, eAccessRandom> dst; |
| /* Perform a horizontal or vertical Box Blur | |
| Can perform multiple iterations in order to approximate a Gaussian Blur. | |
| */ | |
| kernel BoxBlur : ImageComputationKernel<eComponentWise> { | |
| Image<eRead, eAccessRandom, eEdgeClamped> src; | |
| Image<eReadWrite, eAccessRandom, eEdgeClamped> dst; | |
| param: | |
| float2 size; // blur size | |
| int iterations; // number of iterations to perform |
| kernel Distort : ImageComputationKernel<ePixelWise> { | |
| Image<eRead, eAccessRandom, eEdgeClamped> in; | |
| Image<eRead, eAccessPoint, eEdgeClamped> uv; | |
| Image<eWrite, eAccessPoint> out; | |
| param: | |
| bool stmap; | |
| bool enable_blur; | |
| float blur_size; | |
| int blur_samples; |
| /* | |
| Nuke blinkscript implementation of a simple image Transform operator. | |
| Demonstrates pixel filter interpolation algorithms. | |
| The following pixel filters are implemented: | |
| 0 - Blackman-Harris : Similar to cubic, but better performance in high frequencies | |
| 1 - Lanczos4 : 2x2 lanczos windowed sinc function | |
| 2 - Lanczos6 : 3x3 lanczos windowed sinc function | |
| 3 - Cubic : (Bicubic interpolation) - a=0.0, b=0.0 | |
| 4 - Mitchell : (Bicubic interpolation) - a=1/3, b=1/3 |
| #!/usr/bin/python3 | |
| import os, sys, re, shutil | |
| import logging | |
| import threading | |
| import concurrent.futures | |
| import multiprocessing | |
| import argparse, shlex |
| """Test of finding Nuke's viewer widget, and intercepting the hardwired "c" shortcut and rewiring it to view the RGB channel | |
| """ | |
| from PySide import QtGui, QtCore | |
| def findviewer(): | |
| stack = QtGui.QApplication.topLevelWidgets() | |
| viewers = [] | |
| while stack: |
| import PySide.QtCore as QtCore | |
| import PySide.QtGui as QtGui | |
| from nukescripts import panels | |
| class PanelTest(QtGui.QWidget): | |
| def __init__(self, parent=None): | |
| QtGui.QWidget.__init__(self, parent) | |
| self.setLayout(QtGui.QVBoxLayout()) | |
| self.myTable = QtGui.QTableWidget() | |
| self.myTable.header = ['Date', 'Files', 'Size', 'Path' ] |