# Foundation Edge Tool

**URL:** <https://forum.commonvisionblox.com/t/foundation-edge-tool/1360>\
**Category:** Programming Questions\
**Tags:** display, csharp\
**Created:** [February 26, 2021, 3:49pm UTC](https://forum.commonvisionblox.com/t/foundation-edge-tool/1360 "2021-02-26T15:49:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forum.commonvisionblox.com/u/Neil)\
**Post date:** [February 26, 2021, 3:49pm UTC](https://forum.commonvisionblox.com/t/foundation-edge-tool/1360/1 "2021-02-26T15:49:34Z")

</div>

Slightly confused and cant seem to find any details.

i am trying to use the edge tool that comes with foundation package.  
Using VS19 and c#  
Using the Streamhandler works great and displays and all that,

How do I pass the Image and plane data to the foundation Edge tool?

bool located =Edge.FindFirst(streamHandler1, EdgeArea, EdgeSearchMode.ContrastSubPixel, EdgeType.Negative, System.Convert.ToDouble(TrkEdgeThreshold.Value), 1);

But I get an error where I am not passing a Plane layer to the EDGE. how do i send this?

Kind Regards on the fine afternoon.

---

<div class="post-metadata">

**Author:** ![rtp\_derahs](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/rtp_derahs/32/79_2.png) [@rtp\_derahs](https://forum.commonvisionblox.com/u/rtp_derahs)\
**Post date:** [February 26, 2021, 5:40pm UTC](https://forum.commonvisionblox.com/t/foundation-edge-tool/1360/2 "2021-02-26T17:40:52Z")

</div>

Hi Neil,

I assume you are using [this function](https://help.commonvisionblox.com/NextGen/14.0/cvbnet/df/d43/class_stemmer_1_1_cvb_1_1_foundation_1_1_edge.html#a76253cb3911121cda0c552942aa5b7f1)?  
What kind of object is your _streamHandler_?

When using the API where the above mentioned function is from, you get the plane from your Stemmer.Cvb.Image object like so:

```
var myPlane = myImage.Planes[0];

```

Cheers  
Thomas
