gmic-blender icon indicating copy to clipboard operation
gmic-blender copied to clipboard

Create first node inside Blender

Open myselfhimself opened this issue 5 years ago • 5 comments

Example : the sharpen node

From https://gmic.eu/reference.shtml#sharpen

Example of use:
--
  | image.jpg sharpen 300
  | image.jpg blur 5 sharpen 300,1

Should be hardcoded for now. Generation from the JSON output of G'MIC 2.90 will come later on.

myselfhimself avatar Mar 09 '20 14:03 myselfhimself

For showing labels those tips from Blenderchat can be used

 you have the 'depscription' field of each node property
or can use label's from layout.label(text='some nice text..')

myselfhimself avatar Mar 09 '20 18:03 myselfhimself

sharpen is a builtin command, not a filter, so will possibly not be in the .json output from G'MIC. Our goal in the end is to generate nodes almost exclusively from that .json file. Here are corresponding higher level sharpening filters that will belong in this file:

  [#1] Details/Constrained Sharpen
  [#2] Details/Sharpen [Deblur]
  [#3] Details/Sharpen [Gold-Meinel]
  [#4] Details/Sharpen [Gradient]
  [#5] Details/Sharpen [Hessian]
  [#6] Details/Sharpen [Inverse Diffusion]
  [#7] Details/Sharpen [Multiscale]
  [#8] Details/Sharpen [Octave Sharpening]
  [#9] Details/Sharpen [Richardson-Lucy]
  [#10] Details/Sharpen [Shock Filters]
  [#11] Details/Sharpen [Texture]
  [#12] Details/Sharpen [Tones]
  [#13] Details/Sharpen [Unsharp Mask]
  [#14] Details/Sharpen [Whiten]
-> Octave Sharpening & Texture are much appreciated

Thanks to @dtschump for pointing this out

myselfhimself avatar Mar 10 '20 11:03 myselfhimself

The most transparent filters for the sharpen command are : 'Sharpen [Inverse Diffusion]' and 'Sharpen [Shock filters]'

myselfhimself avatar Mar 10 '20 12:03 myselfhimself

As far as python scripting in concerned, in a vanilla 2.8x blender, only node groups can be scripted, having custom fields/widgets in them... and node groups can output python-scripted images but cannot read a dynamic image generated through a node. The only thing that could be read programmatically with or without node link is an image node with linked stored image file... This could be a starting point for POC instead of complaining that Blender does not have the needed patch yet... or not.

myselfhimself avatar May 29 '20 19:05 myselfhimself

This issue will be the priority for this project

myselfhimself avatar Jun 18 '20 14:06 myselfhimself