필터 지우기
필터 지우기

How to design an image with black and white bits in matlab?

조회 수: 2 (최근 30일)
marie lasz
marie lasz 2021년 4월 24일
댓글: marie lasz 2021년 4월 25일
Hello,
Can anyone guide me how to generate an image with black and white bits with any letter or any sign?
Image source:copied

채택된 답변

Image Analyst
Image Analyst 2021년 4월 24일
Try this:
grayImage = 255 * zeros(100, 100, 'uint8');
for k = 1 : length(rows)
grayimage(row(k), columns(k)) = 0;
end
rows and columns are the 1-D vectors/lists of where you want there to be a black pixel. Obviously the values in there depend on that shape you want to draw.

추가 답변 (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