How to label pixels in gray scale black and white image with only two classes for each pixel

We have a gray scale image with two colors only. Complete black with pixel value of 0 and complete white with pixel value of 255 only. How we can create labels for such monochrome images in segmentation neural network.

Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Asked:

on 10 Dec 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!