Load image in form one-dimensional signal
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I use the Matlab statement "s = leleccum(1:3920)" for any image rather than leleccum image? The number 3920, what it means please I need your help Arkan
댓글 수: 0
답변 (2개)
Image Analyst
2016년 12월 10일
That takes an image called leleccum and stacks all columns on top of each other with col 1 at the top, then col 2 underneath that, then col 3 and so on. Then it extracts the first 3920 elements of that column vector into a new column vector. This may or may not be an exact integer number of columns.
To do it for an image of any other name, simple use the name of the other image.
For example to get the first 58 pixels in image "grayImage", do this:
s = grayImage(1:58)
댓글 수: 4
Image Analyst
2016년 12월 11일
OK, so...did you do that? Did you convert your image to double like it said? If not, why not?
참고 항목
카테고리
Help Center 및 File Exchange에서 Denoising and Compression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!