|
@@ -20,13 +20,7 @@ namespace bbiwarg.Images
|
|
|
|
|
|
public EdgeImage(DepthImage depthImage, OutputImage outputImage)
|
|
|
{
|
|
|
- Image<Gray, byte> dimg = depthImage.Image;
|
|
|
- //rescale depthImage to [0,255] -> performance loss not worth (is already scaled to [0,200])
|
|
|
- /*double[] min, max;
|
|
|
- Point[] minLoc, maxLoc;
|
|
|
- dimg.MinMax(out min, out max, out minLoc, out maxLoc);
|
|
|
- double interval = max[0] - min[0];
|
|
|
- dimg = dimg.Convert(delegate(byte d) {return (byte) ((d/interval)*255);});*/
|
|
|
+ Image<Gray, byte> dimg = depthImage.Image * (255.0f / (float)(depthImage.MaxDepth - depthImage.MinDepth));
|
|
|
|
|
|
Image = dimg.Canny(100, 75, 3);
|
|
|
|