qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
|
#include <ccIsolines.h>
Protected Types | |
enum | ConfigurationCodes { CASE0 = 0 , CASE1 = 1 , CASE2 = 2 , CASE3 = 3 , CASE4 = 4 , CASE5 = 5 , CASE6 = 6 , CASE7 = 7 , CASE8 = 8 , CASE9 = 9 , CASE10 = 10 , CASE11 = 11 , CASE12 = 12 , CASE13 = 13 , CASE14 = 14 , CASE15 = 15 , VISITED = 16 } |
2x2 cell configuration codes | |
enum | Edges { NONE = -1 , TOP = 0 , RIGHT = 1 , BOTTOM = 2 , LEFT = 3 } |
Entry/exit edges. | |
Protected Member Functions | |
void | preCodeImage (const T *in) |
Computes a code for each group of 4x4 cells. More... | |
void | endContour (bool closed, bool alternatePath) |
int | findIsolines (const T *in) |
Searches image for contours from topleft to bottomright corners. | |
double | LERP (T A, T B) const |
LERP between two values. | |
int | getLastIndex () const |
void | setContourX (int contour, int v, double x) |
void | setContourY (int contour, int v, double y) |
int | getValidIndex (int contour, int v) const |
double | measureArea (int contour, int first, int last) const |
double | measureMeanX (int contour) const |
double | measureMeanY (int contour) const |
double | measurePerimeter (int contour, int first, int last) const |
double | measureNormalX (int contour, int i) const |
double | measureNormalY (int contour, int i) const |
double | measureNormalY (int contour, int first, int last) const |
double | measureNormalX (int contour, int first, int last) const |
double | measureAngleChange (int contour, int first, int last) const |
int | ixy (int x, int y) const |
double | measureDistance (int contour, int first, int second) const |
double | measureLength (int contour, int i) const |
double | measureAngle (int contour, int i) const |
Static Protected Member Functions | |
static int | wrap (int i, int lo, int hi) |
Transcription of FindIsolines.java for C++
Fast implementation of marching squares
AUTHOR: Murphy Stein, Greg Borenstein New York University CREATED: Jan-Sept 2012 MODIFIED: Dec 2014 (DGM)
LICENSE: BSD
Copyright (c) 2012 New York University. All rights reserved.
Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by New York Univserity. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED `‘AS IS’' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. This is a fast implementation of the marching squares algorithm for finding isolines (lines of equal color) in an image.
|
inlineprotected |
Computes a code for each group of 4x4 cells.
The code depends only on whether each of four corners is above or below threshold.