필터 지우기
필터 지우기

how i can remove the white colour in binary image ? please help me

조회 수: 1 (최근 30일)
my objective is to remove the stalk from palm oil fruit , i already convert the image into binary image , but then the stalk become in white colour, so i need to remove those white colour and convert back to RGB. ho i can remove those white colour ? please help me

채택된 답변

Image Analyst
Image Analyst 2017년 6월 17일
Mask the RGB image
% Mask the image using bsxfun() function
maskedRgbImage = bsxfun(@times, rgbImage, cast(~mask, 'like', rgbImage));
Note that I used ~ to invert the mask so we will keep anything that is black, and remove (blacken) anything that is white in your mask from the RGB image.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by