Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: bwboundaries

Subject: bwboundaries

From: Rinachi Garg

Date: 1 Jul, 2008 06:20:18

Message: 1 of 3

[B,L,N,A] = bwboundaries(bw,4);
I have to insert the matrices contained in A into another
cell. If it contains false then pass empty matrix.
What is the syntax???

Subject: bwboundaries

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 1 Jul, 2008 11:05:16

Message: 2 of 3

In article <g4cib2$sgh$1@fred.mathworks.com>,
Rinachi Garg <rinachi_garg@yahoo.co.in> wrote:
>[B,L,N,A] = bwboundaries(bw,4);
>I have to insert the matrices contained in A into another
>cell. If it contains false then pass empty matrix.
>What is the syntax???

I am confused. The variable A will, after the call, contain
a square sparse adjacency matrix. What do you mean by
"the matrices contained in A" ? Do you mean that you want to
extract the enclosing-boundary information from A? Something like,

arrayfun( @(idx) find(A(idx,:)), 1:size(A,1), 'Uniform', 0)
--
  "He wove a great web of knowledge, linking everything together,
  and sat modestly at a switchboard at the center, eager to help."
                                              -- Walter Kerr

Subject: bwboundaries

From: Rinachi Garg

Date: 2 Jul, 2008 05:50:02

Message: 3 of 3

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g4d31b$rf1$1@canopus.cc.umanitoba.ca>...
> In article <g4cib2$sgh$1@fred.mathworks.com>,
> Rinachi Garg <rinachi_garg@yahoo.co.in> wrote:
> >[B,L,N,A] = bwboundaries(bw,4);
> >I have to insert the matrices contained in A into
another
> >cell. If it contains false then pass empty matrix.
> >What is the syntax???
>
> I am confused. The variable A will, after the call,
contain
> a square sparse adjacency matrix. What do you mean by
> "the matrices contained in A" ? Do you mean that you want
to
> extract the enclosing-boundary information from A?
Something like,
>
> arrayfun( @(idx) find(A(idx,:)), 1:size(A,1), 'Uniform',
0)
> --
> "He wove a great web of knowledge, linking everything
together,
> and sat modestly at a switchboard at the center, eager
to help."
> -- Walter
Kerr


yes..
I want to extract the enclosing boundary from A and give it
to another matrix.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
image processing Rinachi Garg 1 Jul, 2008 02:20:20
bwboundaries Rinachi Garg 1 Jul, 2008 02:20:20
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics