From b5f58d1c77d619353f70b917a8800ed8c3036a87 Mon Sep 17 00:00:00 2001 From: Nourepide Date: Sun, 26 Nov 2023 14:14:22 +0300 Subject: [PATCH] Fill Transform nodes. --- Writerside/allor-doc.tree | 3 +- Writerside/topics/Image-Batch-Fork.md | 35 ++++++++++++ Writerside/topics/Image-Batch-Get.md | 29 ++++++++++ Writerside/topics/Image-Batch-Join.md | 29 ++++++++++ Writerside/topics/Image-Batch-Remove.md | 29 ++++++++++ Writerside/topics/Image-Draw.md | 16 +++--- Writerside/topics/Image-Filter.md | 28 +++++----- Writerside/topics/Image-Text.md | 8 +-- .../topics/Image-Transform-Crop-Absolute.md | 38 +++++++++++++ .../topics/Image-Transform-Crop-Corners.md | 55 +++++++++++++++++++ .../topics/Image-Transform-Crop-Relative.md | 39 +++++++++++++ .../Image-Transform-Padding-Absolute.md | 40 ++++++++++++++ .../Image-Transform-Padding-Relative.md | 40 ++++++++++++++ Writerside/topics/Image-Transform-Padding.md | 1 - .../topics/Image-Transform-Resize-Absolute.md | 42 ++++++++++++++ .../topics/Image-Transform-Resize-Relative.md | 43 +++++++++++++++ Writerside/topics/Image-Transform-Rotate.md | 46 ++++++++++++++++ .../topics/Image-Transform-Transpose.md | 37 +++++++++++++ Writerside/topics/Image-Transform.md | 6 +- 19 files changed, 533 insertions(+), 31 deletions(-) create mode 100644 Writerside/topics/Image-Transform-Padding-Absolute.md create mode 100644 Writerside/topics/Image-Transform-Padding-Relative.md delete mode 100644 Writerside/topics/Image-Transform-Padding.md diff --git a/Writerside/allor-doc.tree b/Writerside/allor-doc.tree index 3ab6cd5..5d1014a 100644 --- a/Writerside/allor-doc.tree +++ b/Writerside/allor-doc.tree @@ -94,7 +94,8 @@ - + + diff --git a/Writerside/topics/Image-Batch-Fork.md b/Writerside/topics/Image-Batch-Fork.md index b924d3e..382d58a 100644 --- a/Writerside/topics/Image-Batch-Fork.md +++ b/Writerside/topics/Image-Batch-Fork.md @@ -1 +1,36 @@ # Fork + + + + ImageBatchFork + + + Splits the batch in two. + + + PyTorch + + + + + RGB/A images + + + +
  • First — In case of an odd number, the center image will be sent to the first batch.
  • +
  • Second — In case of an odd number, the center image will be sent to the second batch.
  • +
    +
    +
    +
    + + + + RGB/A images + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Batch-Get.md b/Writerside/topics/Image-Batch-Get.md index 44be0b6..657e4ba 100644 --- a/Writerside/topics/Image-Batch-Get.md +++ b/Writerside/topics/Image-Batch-Get.md @@ -1 +1,30 @@ # Get + + + + ImageBatchGet + + + Return a single image from batch of images. + + + PyTorch + + + + + RGB/A images + + + Index of image from batch + + + + + + + RGB/A images + + + + diff --git a/Writerside/topics/Image-Batch-Join.md b/Writerside/topics/Image-Batch-Join.md index 3970617..48a70be 100644 --- a/Writerside/topics/Image-Batch-Join.md +++ b/Writerside/topics/Image-Batch-Join.md @@ -1 +1,30 @@ # Join + + + + ImageBatchJoin + + + Combines two batches into one. + + + PyTorch + + + + + RGB/A images + + + RGB/A images + + + + + + + RGB/A images + + + + diff --git a/Writerside/topics/Image-Batch-Remove.md b/Writerside/topics/Image-Batch-Remove.md index 66f6fdd..14f8892 100644 --- a/Writerside/topics/Image-Batch-Remove.md +++ b/Writerside/topics/Image-Batch-Remove.md @@ -1 +1,30 @@ # Remove + + + + ImageBatchRemove + + + Remove a single image from batch of images. + + + PyTorch + + + + + RGB/A images + + + Index of image from batch + + + + + + + RGB/A images + + + + diff --git a/Writerside/topics/Image-Draw.md b/Writerside/topics/Image-Draw.md index e2c7226..f62a772 100644 --- a/Writerside/topics/Image-Draw.md +++ b/Writerside/topics/Image-Draw.md @@ -6,46 +6,46 @@ Text -**Backend**: Pillow. +**Backend**: Pillow. ### Chord Text -**Backend**: Pillow. +**Backend**: Pillow. ### Ellipse Text -**Backend**: Pillow. +**Backend**: Pillow. ### Line Text -**Backend**: Pillow. +**Backend**: Pillow. ### Pieslice Text -**Backend**: Pillow. +**Backend**: Pillow. ### Rectangle Text -**Backend**: Pillow. +**Backend**: Pillow. ### Rectangle Rounded Text -**Backend**: Pillow. +**Backend**: Pillow. ### Polygon Text -**Backend**: Pillow. +**Backend**: Pillow. diff --git a/Writerside/topics/Image-Filter.md b/Writerside/topics/Image-Filter.md index daf9e2b..ad1a40d 100644 --- a/Writerside/topics/Image-Filter.md +++ b/Writerside/topics/Image-Filter.md @@ -6,19 +6,19 @@ Text -**Backend**: Pillow. +**Backend**: Pillow. ### Smooth More Text -**Backend**: Pillow. +**Backend**: Pillow. ### Blur Text -**Backend**: Pillow. +**Backend**: Pillow. ### Box Blur @@ -60,64 +60,64 @@ Text Text -**Backend**: Pillow. +**Backend**: Pillow. ### Detail Text -**Backend**: Pillow. +**Backend**: Pillow. ### Edge Enhance Text -**Backend**: Pillow. +**Backend**: Pillow. ### Edge Enhance More Text -**Backend**: Pillow. +**Backend**: Pillow. ### Emboss Text -**Backend**: Pillow. +**Backend**: Pillow. ### Find Edges Text -**Backend**: Pillow. +**Backend**: Pillow. ### Sharpen Text -**Backend**: Pillow. +**Backend**: Pillow. ### Rank Text -**Backend**: Pillow. +**Backend**: Pillow. ### Min Text -**Backend**: Pillow. +**Backend**: Pillow. ### Max Text -**Backend**: Pillow. +**Backend**: Pillow. ### Mode Text -**Backend**: Pillow. +**Backend**: Pillow. diff --git a/Writerside/topics/Image-Text.md b/Writerside/topics/Image-Text.md index 00a32cd..1fac80a 100644 --- a/Writerside/topics/Image-Text.md +++ b/Writerside/topics/Image-Text.md @@ -6,23 +6,23 @@ Text -**Backend**: Pillow. +**Backend**: Pillow. ### Outlined Text -**Backend**: Pillow. +**Backend**: Pillow. ### Multiline Text -**Backend**: Pillow. +**Backend**: Pillow. ### Multiline Outlined Text -**Backend**: Pillow. +**Backend**: Pillow. diff --git a/Writerside/topics/Image-Transform-Crop-Absolute.md b/Writerside/topics/Image-Transform-Crop-Absolute.md index 8bb1be8..7bd0d07 100644 --- a/Writerside/topics/Image-Transform-Crop-Absolute.md +++ b/Writerside/topics/Image-Transform-Crop-Absolute.md @@ -1 +1,39 @@ # Crop Absolute + + + + ImageTransformCropAbsolute + + + Crops images to a specified rectangular area defined by four pixel coordinates. + + + PyTorch + + + + + RGB/A images + + + Horizontal position of the initial rectangular corner in pixels + + + Vertical position of the initial rectangular corner in pixels + + + Horizontal position of the end rectangular corner in pixels + + + Vertical position of the end rectangular corner in pixels + + + + + + + RGB/A images + + + + diff --git a/Writerside/topics/Image-Transform-Crop-Corners.md b/Writerside/topics/Image-Transform-Crop-Corners.md index 7808a04..22c211f 100644 --- a/Writerside/topics/Image-Transform-Crop-Corners.md +++ b/Writerside/topics/Image-Transform-Crop-Corners.md @@ -1 +1,56 @@ # Crop Corners + + + + ImageTransformCropCorners + + + Rounds the corners of an images. + + + Pillow + + + + + RGB/A images + + + The degree of rounding for the corners of the images. + + + Rounds the top left corner + + + Rounds the top right corner + + + Rounds the bottom left corner + + + Rounds the bottom right corner + + + Super-Sampling Anti-Aliasing + — is a technique where the image is temporarily upscale and modified at this higher resolution. + + + +
  • Lanczos — A high-quality, computationally intensive resampling filter often used in professional-grade image processing software to resize images. It’s known for preserving high-frequency details.
  • +
  • Bicubic — A commonly used method in image processing for resampling. It offers a good balance between image quality and computational efficiency. It’s widely adopted in much image processing software.
  • +
  • Hamming — Predominantly used in computing, particularly in areas like error detection and correction. Its computation can get expensive when comparing a string against many strings.
  • +
  • Bilinear — A fast and efficient algorithm that’s good for changing the size of an image, but it can cause some undesirable softening of details. It’s faster than bicubic and Lanczos, but generally provides lower quality results.
  • +
  • Box — This method takes the target pixel of a box on the original image, and samples every pixel within the box, ensuring that all input pixels contribute to the output. While effective, this method can be difficult to optimize.
  • +
  • Nearest — Also known as nearest-neighbor, this is the fastest and simplest interpolation method, often used when speed is more important than quality. It can result in a blocky image when upscaling.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform-Crop-Relative.md b/Writerside/topics/Image-Transform-Crop-Relative.md index baf7c52..b0cda56 100644 --- a/Writerside/topics/Image-Transform-Crop-Relative.md +++ b/Writerside/topics/Image-Transform-Crop-Relative.md @@ -1 +1,40 @@ # Crop Relative + + + + ImageTransformCropRelative + + + Crops images to a specified rectangular area defined by four values ranging from 0.0 to 1.0, + where 0.0 represents the start of the image, and 1.0 represents the end of the image. + + + PyTorch + + + + + RGB/A images + + + Horizontal position of the initial rectangular corner in scale factor + + + Vertical position of the initial rectangular corner in scale factor + + + Horizontal position of the end rectangular corner in scale factor + + + Vertical position of the end rectangular corner in scale factor + + + + + + + RGB/A images + + + + diff --git a/Writerside/topics/Image-Transform-Padding-Absolute.md b/Writerside/topics/Image-Transform-Padding-Absolute.md new file mode 100644 index 0000000..dd9824b --- /dev/null +++ b/Writerside/topics/Image-Transform-Padding-Absolute.md @@ -0,0 +1,40 @@ +# Padding Absolute + + + + ImageTransformPaddingAbsolute + + + Adds new space around the edges of images by pixels. + + + PyTorch + + + + + RGB/A images + + + New width in pixels on horizontal edges + + + New height in pixels on vertical edges + + + +
  • Reflect — The new space reflects the images around the edges.
  • +
  • Edge — The new space is filled with pixels at the edges of the image.
  • +
  • Constant — The new space is filled with emptiness.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform-Padding-Relative.md b/Writerside/topics/Image-Transform-Padding-Relative.md new file mode 100644 index 0000000..bcd9f6e --- /dev/null +++ b/Writerside/topics/Image-Transform-Padding-Relative.md @@ -0,0 +1,40 @@ +# Padding Relative + + + + ImageTransformPaddingRelative + + + Adds new space around the edges of images by scale factor. + + + PyTorch + + + + + RGB/A images + + + New width in the scale factor on horizontal edges + + + New height in the scale factor on vertical edges + + + +
  • Reflect — The new space reflects the images around the edges.
  • +
  • Edge — The new space is filled with pixels at the edges of the image.
  • +
  • Constant — The new space is filled with emptiness.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform-Padding.md b/Writerside/topics/Image-Transform-Padding.md deleted file mode 100644 index 270aed4..0000000 --- a/Writerside/topics/Image-Transform-Padding.md +++ /dev/null @@ -1 +0,0 @@ -# Padding diff --git a/Writerside/topics/Image-Transform-Resize-Absolute.md b/Writerside/topics/Image-Transform-Resize-Absolute.md index 0a0fbe4..3f96c23 100644 --- a/Writerside/topics/Image-Transform-Resize-Absolute.md +++ b/Writerside/topics/Image-Transform-Resize-Absolute.md @@ -1 +1,43 @@ # Resize Absolute + + + + ImageTransformResizeAbsolute + + + Changes images size by pixels. + + + PyTorch + + + + + RGB/A images + + + New width in pixels + + + New height in pixels + + + +
  • Lanczos — A high-quality, computationally intensive resampling filter often used in professional-grade image processing software to resize images. It’s known for preserving high-frequency details.
  • +
  • Bicubic — A commonly used method in image processing for resampling. It offers a good balance between image quality and computational efficiency. It’s widely adopted in much image processing software.
  • +
  • Hamming — While not typically used for image resizing, the Hamming algorithm is ubiquitous in computing, particularly in areas like error detection and correction. Its computation can get expensive when comparing a string against many strings.
  • +
  • Bilinear — A fast and efficient algorithm that’s good for changing the size of an image, but it can cause some undesirable softening of details. It’s faster than bicubic and Lanczos, but generally provides lower quality results.
  • +
  • Box — This method takes the target pixel of a box on the original image, and samples every pixel within the box, ensuring that all input pixels contribute to the output. While effective, this method can be difficult to optimize.
  • +
  • Nearest — Also known as nearest-neighbor, this is the fastest and simplest interpolation method, often used when speed is more important than quality. It can result in a blocky image when upscaling.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform-Resize-Relative.md b/Writerside/topics/Image-Transform-Resize-Relative.md index 8f9ed2d..fdf8389 100644 --- a/Writerside/topics/Image-Transform-Resize-Relative.md +++ b/Writerside/topics/Image-Transform-Resize-Relative.md @@ -1 +1,44 @@ # Resize Relative + + + + ImageTransformResizeRelative + + + Changes images size by scale factor. + + + PyTorch + + + + + RGB/A images + + + New width in a scale factor where 1.0 is original size + + + New height in a scale factor where 1.0 is original size + + + +
  • Lanczos — A high-quality, computationally intensive resampling filter often used in professional-grade image processing software to resize images. It’s known for preserving high-frequency details.
  • +
  • Bicubic — A commonly used method in image processing for resampling. It offers a good balance between image quality and computational efficiency. It’s widely adopted in much image processing software.
  • +
  • Hamming — While not typically used for image resizing, the Hamming algorithm is ubiquitous in computing, particularly in areas like error detection and correction. Its computation can get expensive when comparing a string against many strings.
  • +
  • Bilinear — A fast and efficient algorithm that’s good for changing the size of an image, but it can cause some undesirable softening of details. It’s faster than bicubic and Lanczos, but generally provides lower quality results.
  • +
  • Box — This method takes the target pixel of a box on the original image, and samples every pixel within the box, ensuring that all input pixels contribute to the output. While effective, this method can be difficult to optimize.
  • +
  • Nearest — Also known as nearest-neighbor, this is the fastest and simplest interpolation method, often used when speed is more important than quality. It can result in a blocky image when upscaling.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    + diff --git a/Writerside/topics/Image-Transform-Rotate.md b/Writerside/topics/Image-Transform-Rotate.md index 5c27de5..8db7595 100644 --- a/Writerside/topics/Image-Transform-Rotate.md +++ b/Writerside/topics/Image-Transform-Rotate.md @@ -1 +1,47 @@ # Rotate + + + + ImageTransformRotate + + + Rotate images by degree. + + + Pillow + + + + + RGB/A images + + + Image rotation angle + + + Expands the size of the images to fit when rotated + + + Super-Sampling Anti-Aliasing + — is a technique where the image is temporarily upscale and modified at this higher resolution. + + + +
  • Lanczos — A high-quality, computationally intensive resampling filter often used in professional-grade image processing software to resize images. It’s known for preserving high-frequency details.
  • +
  • Bicubic — A commonly used method in image processing for resampling. It offers a good balance between image quality and computational efficiency. It’s widely adopted in much image processing software.
  • +
  • Hamming — While not typically used for image resizing, the Hamming algorithm is ubiquitous in computing, particularly in areas like error detection and correction. Its computation can get expensive when comparing a string against many strings.
  • +
  • Bilinear — A fast and efficient algorithm that’s good for changing the size of an image, but it can cause some undesirable softening of details. It’s faster than bicubic and Lanczos, but generally provides lower quality results.
  • +
  • Box — This method takes the target pixel of a box on the original image, and samples every pixel within the box, ensuring that all input pixels contribute to the output. While effective, this method can be difficult to optimize.
  • +
  • Nearest — Also known as nearest-neighbor, this is the fastest and simplest interpolation method, often used when speed is more important than quality. It can result in a blocky image when upscaling.
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform-Transpose.md b/Writerside/topics/Image-Transform-Transpose.md index 065d6cc..2028506 100644 --- a/Writerside/topics/Image-Transform-Transpose.md +++ b/Writerside/topics/Image-Transform-Transpose.md @@ -1 +1,38 @@ # Transpose + + + + ImageTransformTranspose + + + Provides control over the orientation and location of images. + + + Pillow + + + + + RGB/A images + + + +
  • Flip Horizontally — Reflects the image horizontally.
  • +
  • Flip Vertically — Reflects the image vertically.
  • +
  • Rotate 90 — Rotates the image 90 degrees clockwise.
  • +
  • Rotate 180 — Rotates the image 180 degrees clockwise.
  • +
  • Rotate 270 — Rotates the image 270 degrees clockwise.
  • +
  • Transpose — Reflects the image across the main diagonal (from top-left to bottom-right).
  • +
  • Transverse — Reflects the image across the secondary diagonal (from top-right to bottom-left).
  • +
    +
    +
    +
    + + + + RGB/A images + + + +
    diff --git a/Writerside/topics/Image-Transform.md b/Writerside/topics/Image-Transform.md index 71eec4d..c26f610 100644 --- a/Writerside/topics/Image-Transform.md +++ b/Writerside/topics/Image-Transform.md @@ -30,7 +30,7 @@ Text Text -**Backend**: Pillow. +**Backend**: Pillow. ### Padding @@ -42,11 +42,11 @@ Text Text -**Backend**: Pillow. +**Backend**: Pillow. ### Transpose Text -**Backend**: Pillow. +**Backend**: Pillow.