API Documentation
  • Introduction
  • API Reference
  • 🔐Authentication
  • Core APIs
    • Perfect Redesign
    • Beautiful Redesign
    • Creative Redesign
    • Sketch to Render
    • Virtual staging
    • Precision
    • Fill Spaces
    • Decor Staging
    • Furniture Removal
    • Colors & Textures
    • Furniture Finder
    • Full HD
    • Text to design
    • Furniture Creator
    • Design Advisor
    • Sky Colors
    • Design Transfer
    • Floor Editor
    • Paint Visualizer
    • Material Swap
    • Room Composer
    • Design Critique
    • Create Mask Image
    • Download Generated Images
    • Smart Home AI
  • DESIGN SCOPE
    • Interiors
      • Design Styles for Interiors
      • Room Types
      • Colors in Interior Design
      • Explore Material Options for Interior Designs
    • Exteriors
      • Design Styles for Exteriors
      • Copy of Design Styles for Exteriors
      • House angles
      • Exterior Colors
      • Material Options for Exterior Designs
    • Gardens
      • Design Styles for Gardens
      • Garden Types
      • Explore Color Options for Garden Designs
      • Material Options for Garden Designs
  • Data
    • User Details
    • Design Scope
  • Others
    • What is Masked Image?
Powered by GitBook
On this page
  • How to generate Masked Image?
  • Tool & Libraries

Was this helpful?

  1. Others

What is Masked Image?

PreviousDesign Scope

Last updated 10 months ago

Was this helpful?

Image masking is a technique used in photo editing. It helps to separate specific areas of an image for more precise editing and manipulation. It's like placing a “mask” over parts of a picture that you want to protect or hide while exposing the other areas for editing.

Example of "Original Image" and "Masked Image".

The masked image is generated in black and white colors. The white color highlights the selected objects, areas, or specific parts of the image, while the black color represents the unselected areas.

How to generate Masked Image?

  1. Upload Original Image

  2. Select an area that you want to brush using brush tool or select an object that are detected by AI in the image.

  3. Click on the "Download Mask Image" button.

Tool & Libraries

If you are utilizing an API such as Precision, Fill Spaces, Decor Staging, Furniture Removal, Color & Textures, and Paint Visualizer, you will come across a parameter named masked_image.

For creating a mask image on the frontend of your website, we recommend using the following tools and libraries:

To generate a sample mask image you can visit our website

Image Masking: Here is a demonstration of Konva JS, a tool you can use to mask the image on the canvas.

Color Picker: This is a simple color picker from HTML The color picker supports RGB and HEX color formats (e.g., #000000), but only RGB values like 230, 110, 101 are accepted in the platform. HEX values are not supported in this platform.

Color Upload: The color upload is a basic PNG image containing a single color, similar to the provided example.

https://homedesigns.ai/get-mask-image
https://konvajs.org/docs/sandbox/Free_Drawing.html
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color
Video Toturial of How to generate Masked Image.
Original Image
Image with the selected an object like Chair, Mirror, Lamp, Pillo.
Masked Image