裁切节点

    裁切节点。

    The Crop node crops an input image to a selected region by either making the cropped area transparent or by resizing the input image.

    图像

    Standard image input. If no image is selected, an image filled with the selected color is used. You can use and crop this image in combination with another background image.

    裁剪图像尺寸

    When disabled, the image remains the same size, but the cropped areas become transparent pixels. When enabled, the image size is cropped to the specified region and gets a new width or height or both.

    相对

    When enabled, crop dimensions are a percentage of the input image’s width and height. When disabled, the range of the Crop Region Values are the width and height of the image in pixels.

    裁切区域值

    Define borders of the crop region; Left or Right can vary between 0 and the width of the image. Up or Down can vary between 0 and the height of the image.

    Note

    The terminology (Left, Right, Up, Down) can be misunderstood easily. First, the numbers do not represent the amount of cropping, e.g. Left is set to 50 and Right to 50 does not mean that you will be cropping the image for 50 pixels on both the left and right side. In fact, it will result in zero-sized image because you are cropping from pixel 50 to pixel 50. So, the numbers defines a position in the input image.

    Thirdly, the terms Up and Down are ambiguous and suggest an action; e.g. “Crop down”. The values, however, are not amounts but positions. The term Down should be interpreted as “Bottom” and Up as top.

    图像

    标准化图像输出。

    The following workflow removes some possible confusion:

    1. Uncheck Crop Image Size for this step, so that you can see the borders of the input image. To see this border, you have to select the Viewer node.

    2. To crop from the left, change the Left value. To crop from the right, change the Right value. To crop from the top, change the Up value. To crop from the bottom, change the Down value.