Image/matrix shift

버전 1.1.0.0 (82.1 KB) 작성자: Nikolay S.
Two of my functions used for registration-matrix shifting as alternative to circshift.
다운로드 수: 1K
업데이트 날짜: 2014/1/27

라이선스 보기

The following functions are proposed to implement matrix data shift in user defined direction. In case of image processing it is highly useful in image stabilization, denoising etc…

In short:
- "floatingCircShift" is a variant of circhift, but supports non integer inputs, for numerical matrices. Supports 'circular' padding.

- "normshift" fast and efficient multi-dimensional and multi-type, with only zero bound assumption.

- "imshift" designated to be used with images (numerical matrices up to 3 dimentions). Capable to shift several images at once, user definable boundaries assumptions: 'zero', 'circular', 'replicate' 'symmetric'. See "imfilter" for details.

Why was this needed? While circhift is fast and all types and input dimensions supporting, is implies a circular signal, which in not always the case. In addition it supports only integer shift values, while fractional number sometimes needed. See subplot 1- with sky’s coming out of the ground. Sometimes it is better to assume zero values outside the image bounds- see subplots 2,3. In this case my function "normshift" will be useful, as it is fast and supports all types of data.
When a user needs additional boundaries assumptions, he can use my "imshift" function, which is somewhat limited in supported inputs (numerical matrices up to 3 dimensions), and runs at slower pace, but it supports different types of boundaries types : 'symmetric', 'replicate'-subplot 4, 'circular’ and zero/X values bounds.

For details see functions headers, and demo file "demoImageShifting.m"

인용 양식

Nikolay S. (2024). Image/matrix shift (https://www.mathworks.com/matlabcentral/fileexchange/32078-image-matrix-shift), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기
도움

줌: Shift based LBP

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

• Support non integer shifts for numeric inputs.
• Added fractional circular shift.
• Added demo demonstrating each method, and possible applications.

1.0.0.0