Padding circular data set

조회 수: 4 (최근 30일)
David
David 2014년 3월 19일
댓글: David 2014년 3월 20일
I have data in a circular domain centered in a square array. The diameter of the circle is less than the dimension of the array. Outside of the circle are NaN. I would like to use something similar to the padarray function to replace the NaN values with values that are mirrored symmetrically across the perimeter of the circle (i.e. mirrored radially). Is this possible or is there some other function to achieve this?

채택된 답변

Image Analyst
Image Analyst 2014년 3월 19일
Nope. That is a rather specialized operation and you'd have to write that yourself. You can easily determine which values are nan, but to find out which pixel, along the radial axis, but on the other side of the circle perimeter to take to replace the nan with is something you'll have to write yourself.
  댓글 수: 1
David
David 2014년 3월 20일
Thanks very much for the quick response. I have something written, but was looking for alternatives that might perform better than my code...

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by