필터 지우기
필터 지우기

Quantize a greyscale Image by 5 levels?

조회 수: 7 (최근 30일)
Twain Glaser
Twain Glaser 2015년 10월 20일
답변: Image Analyst 2015년 10월 22일
I would like to quantize an image by 5 levels without using the imquantize command. Given any a grayscale image on a scale of [0,255] this should be possible. Thanks in advance for your time and help.

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 20일
Q = floor(YourArray ./ (256/5));

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 10월 22일
Use imquantize:
Description
example
quant_A = imquantize(A,levels) quantizes image A using specified quantization values contained in the N element vector levels. Output image quant_A is the same size as A and contains N + 1 discrete integer values in the range 1 to N + 1 which are determined by the following criteria:

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by