find boundaries in a binary n-dimensions

3 次查看(过去 30 天)
Hi, I have n-dimension matrix (with n=7) of ones and zeros. There should be a clear cut between the region of ones and region of zeros, and I want to find approximate equation for it (with 7 variables). In other words, I want to find the boundaries of the region with zeros. There are functions for 2D and 3D. Is there anything I can do with nD?
Many thanks
  5 个评论
Walter Roberson
Walter Roberson 2017-11-5
If you are looking for volumes, then you can calculate the volume of each matrix entry. This is much easier if the vectors are sampled uniformly; if they are sampled non-uniformly you can do things like saying that the volume runs half way to the next center in that direction -- but if you do that then you run into problems with boundary cells (unless you know that there are no occupied cells on the outside boundary.) Anyhow, calculate the individual volumes through marginal distances, do an element-wise multiplication by the occupation matrix, sum to get total volume.
Walter Roberson
Walter Roberson 2017-11-5
equations like p1=a*p2^2+b*p3+c*p4+... cannot express boundaries unless you use piecewise(), or you use heaviside() and dirac(), or other discrete functions such as mod() or floor() and ceil()

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by