Vectorization
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear Community,
Let say I have Matrix M. In Matrix M, each Column is feature of Image. Now what I want to get a binary matrix B by following way.
for given image feature i:
B(1,i) = M(1,i) >= M(2,i);
its mean for each image feature, each cell is compared to its next cell. I want to do it without loops for speed.
댓글 수: 1
Oleg Komarov
2012년 4월 15일
"Without loops for speed" is really not the right statement anymore.
Many times loops are much faster is correctly set up.
채택된 답변
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!