aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs
blob: f621497577efb1834d8cfc2b6c8db929def02bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    /// <summary>
    /// Represents the Tango DAL layer observables adapter code file.
    /// </summary>
    /// <seealso cref="Tango.CodeGeneration.Class" />
    public class ObservablesAdapterFile : Class
    {

    }
}
cktick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
Structured forests for fast edge detection {#tutorial_ximgproc_prediction}
==========================================

Introduction
------------

In this tutorial you will learn how to use structured forests for the purpose of edge detection in
an image.

Examples
--------

![image](images/01.jpg)

![image](images/02.jpg)

![image](images/03.jpg)

![image](images/04.jpg)

![image](images/05.jpg)

![image](images/06.jpg)

![image](images/07.jpg)

![image](images/08.jpg)

![image](images/09.jpg)

![image](images/10.jpg)

![image](images/11.jpg)

![image](images/12.jpg)

@note binarization techniques like Canny edge detector are applicable to edges produced by both
algorithms (Sobel and StructuredEdgeDetection::detectEdges).

Source Code
-----------

@includelineno ximgproc/samples/structured_edge_detection.cpp

Explanation
-----------

-#  **Load source color image**
    @code{.cpp}
    cv::Mat image = cv::imread(inFilename, 1);
    if ( image.empty() )
    {
        printf("Cannot read image file: %s\n", inFilename.c_str());
        return -1;
    }
    @endcode

-#  **Convert source image to [0;1] range**
    @code{.cpp}
    image.convertTo(image, cv::DataType<float>::type, 1/255.0);
    @endcode

-#  **Run main algorithm**
    @code{.cpp}
    cv::Mat edges(image.size(), image.type());

    cv::Ptr<StructuredEdgeDetection> pDollar =
        cv::createStructuredEdgeDetection(modelFilename);
    pDollar->detectEdges(image, edges);
    @endcode

-#  **Show results**
    @code{.cpp}
    if ( outFilename == "" )
    {
        cv::namedWindow("edges", 1);
        cv::imshow("edges", edges);

        cv::waitKey(0);
    }
    else
        cv::imwrite(outFilename, 255*edges);
    @endcode

Literature
----------

For more information, refer to the following papers : @cite Dollar2013 @cite Lim2013