Bookmark and Share

Computer Vision Metrics: Appendix D

Register or sign in to access the Embedded Vision Academy's free technical training content.

The training materials provided by the Embedded Vision Academy are offered free of charge to everyone. All we ask in return is that you register, and tell us a little about yourself so that we can understand a bit about our audience. As detailed in our Privacy Policy, we will not share your registration information, nor contact you, except with your consent.

Registration is free and takes less than one minute. Click here to register, and get full access to the Embedded Vision Academy's unique technical training content.

If you've already registered, click here to sign in.

See a sample of this page's content below:


Bibliography references are set off with brackets, i.e. "[XXX]". For the corresponding bibliography entries, please click here.


Extended SDM Metrics

Figure D-1 provides a visualization of image texture using SDMs.


Figure D-1. SDM extended metrics

Listing D-1 illustrates the extended SDM metrics from Chapter 3. The code is available online at     http://www.apress.com/source-code/ComputerVisionMetrics.

Listing D-1. Extended SDM Metrics from Chapter 3

/*

** CREATED 1991 (C) KRIG RESEARCH, SCOTT KRIG - UNPUBLISHED SOFTWARE

** PORTED TO MAC 2014

**

** ALL RIGHTS RESERVED

**

** THIS SOFTWARE MAY BE USED FREELY FOR ACADEMIC AND RESEARCH PURPOSES.

** REFERENCE THIS BOOK AND PROVIDE THIS NOTICE WHEN USING THE SOFTWARE.

*/

 

using namespace std;

 

#include <math.h>

#include <stdio.h>

#include <opencv2/opencv.hpp>

#include "/usr/local/include/opencv/cv.h"

#include "/usr/local/include/opencv2/core/core.hpp" #include "/usr/local/include/opencv2/highgui/highgui.hpp" #include <iostream>

 

using namespace cv;

 

#define TINY            0.0000000001

#define F6U            "%6f.3"

#define F6F            "%.6f"

#define F3F            "%.3f"

#define FXF            "%.0f"

#define FALSE 0

#define TRUE 1

 

typedef struct area {

int x;

int y;

int dx;

int dy;

} area_t;

 

typedef struct {

double            t0;

double            t90;

double            t135;

double            t45;

double            tave;

} ctab;

 

typedef struct {

...

Brian Dipert
Offline
Last seen: 6 hours 15 min ago
Level 3: Conjurer
Joined: 2011-07-20
Points: 43

Added. Thank you

Rosinkrans
Offline
Last seen: 3 years 44 weeks ago
Level 1: Prestidigitator
Joined: 2013-03-20
Points: 1

The link to a PDF version is missing...