How to shift all the pixels position by a specific function and recreate the image of shifted pixel values?

조회 수: 4 (최근 30일)
The image need to be used is in grayscale and how to create a block of 2x2 using the pixels. How can we implement the below process? Let k0,K1.. be some radom alphanumbers.

답변 (1개)

Jonas
Jonas 2021년 7월 9일
for the shifting have a look into circshift() which allows you to shift all elements by specific amounts along x and y.
for the block processing there is the function blockproc()
  댓글 수: 4
c1ph3r
c1ph3r 2021년 7월 9일
편집: c1ph3r 2021년 7월 9일
K value is the ascii value of a character. circshift may not work because the x' and y' vary with the value of x and y. which changes randomly with position and its a fixed value. If you think circshift works for my requirement, can you please share that part of code so that it helps me understand it.
Jonas
Jonas 2021년 7월 10일
that was not clear to me, i thought the K were random, but constant values that the same for all pixels. what about pixel locations to which multiple pixels are assigned (are the values summed then?)? and what about pixels to which no pixel is transformed, are those 0?

댓글을 달려면 로그인하십시오.

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by