Filter löschen
Filter löschen

find boundaries in a binary n-dimensions

3 Ansichten (letzte 30 Tage)
Aviad
Aviad am 5 Nov. 2017
Kommentiert: Walter Roberson am 5 Nov. 2017
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 Kommentare
Walter Roberson
Walter Roberson am 5 Nov. 2017
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 am 5 Nov. 2017
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()

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by