Skip to content

Commit

Permalink
Fill Lens nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nourepide committed Nov 30, 2023
1 parent 7386ad9 commit 9acc753
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 0 deletions.
51 changes: 51 additions & 0 deletions Writerside/topics/Image-Effects-Lens-Bokeh.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# Bokeh

<deflist type="narrow">
<def title="Full Name">
ImageEffectsLensBokeh
</def>
<def title="Description">
Emulate a <a href="https://en.wikipedia.org/wiki/Bokeh">Bokeh</a> effect to images.
</def>
<def title="Backend">
<a href="Modules.md" anchor="pytorch" summary="Image processing with pure Tensor without transformations.">PyTorch</a>
</def>
<def title="Input Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
<def title="Blades Shape">
The number of blades at the lens
</def>
<def title="Blades Radius">
Size of blades
</def>
<def title="Blades Rotation">
Blades rotation in angles
</def>
<def title="Blur Size">
Blur strength
</def>
<def title="Blur Type">
<list>
<li><control>Bilateral</control> — Blur is set up to preserve sharp and bright edges.</li>
<li><control>Stack</control> — Blur with color correction.</li>
<li><control>None</control> — Without a blur.</li>
</list>
</def>
<def title="Method">
<list>
<li><control>Dilate</control> — A good choice for initially bright images. Creates a strong bokeh effect, but spoils the details of the image. I can recommend it only for the background.</li>
<li><control>Filter</control> — Very fast. A weak bokeh effect, I recommend it for dark images with bright rare details such as lamp lights or car headlights. Originally created under the impression of LensBlur in Adobe Photoshop and achieved about 80%~ compliance. I recommend setting blur_type as none since it blurs the image by itself.</li>
</list>
</def>
</deflist>
</def>
<def title="Output Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
</deflist>
</def>
</deflist>
60 changes: 60 additions & 0 deletions Writerside/topics/Image-Effects-Lens-Chromatic-Aberration.md
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
# Chromatic Aberration

<deflist type="narrow">
<def title="Full Name">
ImageEffectsLensChromaticAberration
</def>
<def title="Description">
Apply a camera lens color shift to the images.
</def>
<def title="Backend">
<a href="Modules.md" anchor="pytorch" summary="Image processing with pure Tensor without transformations.">PyTorch</a>
</def>
<def title="Input Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
<def title="Shift">
Color shift in PX
</def>
<def title="Method">
<list>
<li><control>Reflect</control> — The new space reflects the images around the edges.</li>
<li><control>Edge</control> — The new space is filled with pixels at the edges of the image.</li>
<li><control>Constant</control> — The new space is filled with emptiness.</li>
</list>
</def>
<def title="Shift Type">
Type of chromatic aberration
</def>
<def title="Mixing Type">
Type of method for shifting colors
</def>
<def title="Transpose">
<list>
<li><control>None</control> — Without a change of direction.</li>
<li><control>Rotate</control> — Alternative direction.</li>
<li><control>Reflect</control> — In both directions at the same time.</li>
</list>
</def>
<def title="Colors">
<list>
<li><control>rb</control> — Red and Blue color channels.</li>
<li><control>rg</control> — Red and Green color channels.</li>
<li><control>gb</control> — Green and Blue color channels.</li>
</list>
</def>
<def title="Lens Curvy">
The value of the curve during the propagation of the effect, where 1.0 is linear.
Not working with shift_type 4.
</def>
</deflist>
</def>
<def title="Output Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
</deflist>
</def>
</deflist>
44 changes: 44 additions & 0 deletions Writerside/topics/Image-Effects-Lens-Optic-Axis.md
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
# Optic Axis

<deflist type="narrow">
<def title="Full Name">
ImageEffectsLensOpticAxis
</def>
<def title="Description">
Apply a camera lens distorting to the images.
</def>
<def title="Backend">
<a href="Modules.md" anchor="pytorch" summary="Image processing with pure Tensor without transformations.">PyTorch</a>
</def>
<def title="Input Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
<def title="Lens Shape">
Form of lens
</def>
<def title="Lens Edge">
If around is selected, the lens will adjust to the proportions of the image
</def>
<def title="Lens Curvy">
The value of the curve during the propagation of the effect, where 1.0 is linear
</def>
<def title="Lens Zoom">
How close lens are to the center of images
</def>
<def title="lens Aperture">
How much lens will distort images
</def>
<def title="Blur Intensity">
Strength of blur due to lens
</def>
</deflist>
</def>
<def title="Output Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
</deflist>
</def>
</deflist>
44 changes: 44 additions & 0 deletions Writerside/topics/Image-Effects-Lens-Vignette.md
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
# Vignette

<deflist type="narrow">
<def title="Full Name">
ImageEffectsLensVignette
</def>
<def title="Description">
Apply a camera lens decreasing in the brightness and saturation to the images.
</def>
<def title="Backend">
<a href="Modules.md" anchor="pytorch" summary="Image processing with pure Tensor without transformations.">PyTorch</a>
</def>
<def title="Input Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
<def title="Lens Shape">
Form of lens
</def>
<def title="Lens Edge">
If around is selected, the lens will adjust to the proportions of the image
</def>
<def title="Lens Curvy">
The value of the curve during the propagation of the effect, where 1.0 is linear
</def>
<def title="Lens Zoom">
How close lens are to the center of images
</def>
<def title="Brightness">
Adjust brightness of images with a scale.
</def>
<def title="Saturation">
Adjust color saturation of an images with a scale
</def>
</deflist>
</def>
<def title="Output Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
</deflist>
</def>
</deflist>
50 changes: 50 additions & 0 deletions Writerside/topics/Image-Effects-Lens-Zoom-Burst.md
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
# Zoom Burst

<deflist type="narrow">
<def title="Full Name">
ImageEffectsLensZoomBurst
</def>
<def title="Description">
Emulate a <a href="https://en.wikipedia.org/wiki/Zoom_burst">Zoom Burst</a> effect to images.
</def>
<def title="Backend">
<a href="Modules.md" anchor="pytorch" summary="Image processing with pure Tensor without transformations.">PyTorch</a>
</def>
<def title="Input Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
<def title="Scale">
How far the zoom will aim. Where <control>2.0</control> is <control>x2</control> from image size
</def>
<def title="Samples">
How many intermediate frames will be created
</def>
<def title="Position X">
Relative vertical image position
</def>
<def title="Position Y">
Relative horizontal image position
</def>
<def title="Rotation">
Rotation in angle
</def>
<def title="Method">
<list>
<li><control>Circle</control> — Zoom will spread out in the form of a circle, and do not take into account the boundaries of the images.</li>
<li><control>Point</control> — Zoom will spread out from point to boundaries of the images.</li>
</list>
</def>
<def title="Stabilization">
If set to true, the images will retain their size
</def>
</deflist>
</def>
<def title="Output Parameters">
<deflist type="narrow">
<def title="Images">
RGB/A images
</def>
</deflist>
</def>
</deflist>

0 comments on commit 9acc753

Please sign in to comment.