> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rubbrband.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New file

> Description of your new file.

## Mask Input Node

Mask input nodes enable users to incorporate image masks into their workflows. An image mask is a black-and-white representation that identifies selected (white) and unselected (black) regions of a base image. These nodes are generated from a base image, where the selected areas are shaded white, and the unselected areas remain black.&#x20;

In order to add the mask for a mask input node, click the node and upload the base image that you want to mask. Then, use the brush tool to shade the desired areas, and hit save after you're done. You can change the size of the brush tool if desired, which might help you mask more quickly. After you hit save, your mask is added as the input for the node.

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://rubbrband-static-assets-buckets.s3.us-east-1.amazonaws.com/docs/videos/mask_input.mp4" />

## Blur Mask Node

The blur mask node blurs a mask using a Gaussian blur.

**Inputs**

<ResponseField name="Mask" type="mask" required={true}>
  The mask that will be blurred.
</ResponseField>

**Settings**

<ResponseField name="Blur Radius" type="number">
  The amount of blurring of the image. The default is 1.0. The recommended range is between 0.1-50.
</ResponseField>

**Outputs**

<ResponseField name="Mask" type="mask">
  The output mask after blurring.
</ResponseField>

## Mask Image Channel Node

Takes out one particular image channel of the input image, and changes that image channel into a grayscale image.

![](https://rubbrband-static-assets-buckets.s3.us-east-1.amazonaws.com/docs/images/mask_image_channel.jpg)

**Inputs**

<ResponseField name="Image" type="image" required={true}>
  The image for which a particular channel will be extracted.
</ResponseField>

**Settings**

<ResponseField name="Channel" type="select one">
  Red, blue, or green. The color channel that will be extracted.
</ResponseField>

**Outputs**

<ResponseField name="Mask" type="mask">
  The grayscale image, represented with a Mask type, that represents the color channel. If a particular pixel of the specified channel has a value of 255, that pixel in the mask image will have 255.
</ResponseField>

## Invert Mask Node

Takes in a mask image, and inverts it. The black pixels will become white, and the white pixels will become dark. If a grayscale mask is passed in, each pixel of the image will invert (255 - current value)

![](https://rubbrband-static-assets-buckets.s3.us-east-1.amazonaws.com/docs/images/invert_mask.jpg)

**Inputs**

<ResponseField name="Mask" type="mask" required={true}>
  The mask to be inverted
</ResponseField>

**Outputs**

<ResponseField name="Mask" type="mask">
  The inverted mask.
</ResponseField>

## Unmasked Image Contents Node

Outputs the section of the image that has not been masked.

![](https://rubbrband-static-assets-buckets.s3.us-east-1.amazonaws.com/docs/images/unmasked_image_contents.jpg)

**Inputs**

<ResponseField name="Image" type="image" required={true}>
  The base image that has an associated mask.
</ResponseField>

<ResponseField name="Mask" type="mask">
  The mask where white areas are the sections of the initial image that will be removed
</ResponseField>

##

**Settings**

<ResponseField name="Channel" type="select one">
  Red, blue, or green. The color channel that will be extracted.
</ResponseField>

**Outputs**

<ResponseField name="Mask" type="mask">
  The grayscale image, represented with a Mask type, that represents the color channel. If a particular pixel of the specified channel has a value of 255, that pixel in the mask image will have 255.
</ResponseField>

## Segment Object Node

Uses the SAM-2 model to identify and mask out a particular object in an image.

![](https://rubbrband-static-assets-buckets.s3.us-east-1.amazonaws.com/docs/images/segment.jpg)

**Inputs**

<ResponseField name="Image" type="image" required={true}>
  The base image that contains the object of interest.
</ResponseField>

**Settings**

<ResponseField name="Prompt" type="string">
  The prompt that describes the object of interest. Example: "hat"
</ResponseField>

<ResponseField name="Make Boxes" type="boolean">
  If turned on, the masks will be boxes that contain the object.
</ResponseField>

**Outputs**

<ResponseField name="Mask" type="mask">
  The black and white mask, where white areas represent the areas that contain the object of interest.
</ResponseField>

##
