Hi, friends:
I have a area, but I hope to find its'edge, anybody know what kind of
aglorithem to find it in matlab? thank you very much!
|
|
0
|
|
|
|
Reply
|
deshenghong (101)
|
3/4/2004 5:38:21 PM |
|
"yang hong" <deshenghong@hotmail.com> wrote in message
news:0SJ1c.13426$JZ6.384561@news20.bellglobal.com...
> Hi, friends:
>
> I have a area, but I hope to find its'edge, anybody know what kind of
> aglorithem to find it in matlab? thank you very much!
>
>
>
If you have the IP Toolbox, I'd start by reading the help docs for EDGE.
Brett
|
|
0
|
|
|
|
Reply
|
shoelson (825)
|
3/4/2004 6:51:24 PM
|
|
Hi, Brett:
very appreciate your solution.
But I have one more question. Because I have such matrix whose elements
put value "1", and "0" as content of each element. In other words, May I use
some special color to respesent different vaule, for example "1" use color
red represented, "0" is represented by color green. Then I can create my
image, plot it, finally, I use function edge to evaluate the edge of this
area. Could you think my solution is excuseable? Thank you very much!
Best regards,
"Brett Shoelson" <shoelson@helix.nih.gov> wrote in message
news:MUK1c.155$Pp2.436@mencken.net.nih.gov...
>
> "yang hong" <deshenghong@hotmail.com> wrote in message
> news:0SJ1c.13426$JZ6.384561@news20.bellglobal.com...
> > Hi, friends:
> >
> > I have a area, but I hope to find its'edge, anybody know what kind
of
> > aglorithem to find it in matlab? thank you very much!
> >
> >
> >
>
> If you have the IP Toolbox, I'd start by reading the help docs for EDGE.
> Brett
>
>
|
|
0
|
|
|
|
Reply
|
deshenghong (101)
|
3/4/2004 7:32:57 PM
|
|
"yang hong" <deshenghong@hotmail.com> wrote in message
news:txL1c.13452$JZ6.389577@news20.bellglobal.com...
> Hi, Brett:
>
> very appreciate your solution.
>
> But I have one more question. Because I have such matrix whose
elements
> put value "1", and "0" as content of each element. In other words, May I
use
> some special color to respesent different vaule, for example "1" use color
> red represented, "0" is represented by color green. Then I can create my
> image, plot it, finally, I use function edge to evaluate the edge of this
> area. Could you think my solution is excuseable? Thank you very much!
>
> Best regards,
>
> "Brett Shoelson" <shoelson@helix.nih.gov> wrote in message
> news:MUK1c.155$Pp2.436@mencken.net.nih.gov...
> >
> > "yang hong" <deshenghong@hotmail.com> wrote in message
> > news:0SJ1c.13426$JZ6.384561@news20.bellglobal.com...
> > > Hi, friends:
> > >
> > > I have a area, but I hope to find its'edge, anybody know what kind
> of
> > > aglorithem to find it in matlab? thank you very much!
> > >
> > >
> > >
> >
> > If you have the IP Toolbox, I'd start by reading the help docs for EDGE.
> > Brett
> >
> >
>
>
Hi Yang,
I'm not sure I understand your question, but I can tell you that it's simple
to set the colormap for the binary image. For instance:
k=round(rand(1000));
imshow(k)
set(gcf,'colormap',[1 0 0;0 1 0]);
But the color display of your data doesn't have any effect on the edge
detection. I'm not sure that will help you.
Brett
|
|
0
|
|
|
|
Reply
|
shoelson (825)
|
3/4/2004 8:36:49 PM
|
|
Hi, friends:
Your explaination is helpful, but I have make a clear explaination to
you about my question:
I have function f(a,b,omga), I hope to find what kind of condition for
variable a(a>0) and b(b>0) satisfy f>=0 for omga[0,2*pi], now I get boolean
result matrix, the row represents a, the column represents b, if function
f>=0, I set this element of boolean result as value "1",otherwise, I set as
vaule "0". As a result, I get this result matrix, but the trouble is I
hope to make the edge clear. So I need to use function edge. Thank you very
much!
"Brett Shoelson" <shoelson@helix.nih.gov> wrote in message
news:BrM1c.158$Pp2.30@mencken.net.nih.gov...
>
> "yang hong" <deshenghong@hotmail.com> wrote in message
> news:txL1c.13452$JZ6.389577@news20.bellglobal.com...
> > Hi, Brett:
> >
> > very appreciate your solution.
> >
> > But I have one more question. Because I have such matrix whose
> elements
> > put value "1", and "0" as content of each element. In other words, May I
> use
> > some special color to respesent different vaule, for example "1" use
color
> > red represented, "0" is represented by color green. Then I can create my
> > image, plot it, finally, I use function edge to evaluate the edge of
this
> > area. Could you think my solution is excuseable? Thank you very much!
> >
> > Best regards,
> >
> > "Brett Shoelson" <shoelson@helix.nih.gov> wrote in message
> > news:MUK1c.155$Pp2.436@mencken.net.nih.gov...
> > >
> > > "yang hong" <deshenghong@hotmail.com> wrote in message
> > > news:0SJ1c.13426$JZ6.384561@news20.bellglobal.com...
> > > > Hi, friends:
> > > >
> > > > I have a area, but I hope to find its'edge, anybody know what
kind
> > of
> > > > aglorithem to find it in matlab? thank you very much!
> > > >
> > > >
> > > >
> > >
> > > If you have the IP Toolbox, I'd start by reading the help docs for
EDGE.
> > > Brett
> > >
> > >
> >
> >
>
> Hi Yang,
> I'm not sure I understand your question, but I can tell you that it's
simple
> to set the colormap for the binary image. For instance:
>
> k=round(rand(1000));
> imshow(k)
> set(gcf,'colormap',[1 0 0;0 1 0]);
>
> But the color display of your data doesn't have any effect on the edge
> detection. I'm not sure that will help you.
> Brett
>
>
|
|
0
|
|
|
|
Reply
|
deshenghong (101)
|
3/4/2004 8:55:28 PM
|
|
|
4 Replies
31 Views
(page loaded in 0.688 seconds)
|