필터 지우기
필터 지우기

converting image to zeros and ones

조회 수: 14 (최근 30일)
Tarik Razak
Tarik Razak 2012년 2월 3일
Hi I have an image 32x32 pixels want to convert it to zeros and ones like the following ...any idea how it can be done easily thanks (Note: I dont know how these binary numbers will show up after posting but it is just a 32x32 matrix of 0s and 1s )
00000000000000000000011100000000
00000000000011111111111111000000
00000000001111111111111111100000
00000000111111111111111111000000
00000000111111111111111111000000
00000000111111111111111111000000
00000000011111111111111111100000
00000000011111100000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000000111111000000
00000000000000000001111100000000
00000000000000000001111100000000
00000000000000000111111000000000
00000000000100011111111000000000
00000000011111111111111100000000
00000000111111111111111100000000
00000001111111111111111110000000
00000011111111111111111110000000
00000011111111111111111100000000
00000001111111111111100000000000
00000000000001111111000000000000
00000000000001111111000000000000
00000000000011111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000000111111100000000000000
00000000001111111100000000000000
00000000011111111000000000000000
00000000000111100000000000000000

답변 (1개)

Walter Roberson
Walter Roberson 2012년 2월 3일
rgb2gray() and then greythresh()

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by