Skip to content

Commit

Permalink
Signed-off-by: LitLeo <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
LitLeo committed Mar 22, 2017
1 parent 2e091b9 commit 44344dc
Show file tree
Hide file tree
Showing 63 changed files with 73 additions and 162 deletions.
Binary file modified doc/html.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions okano_3_0/AffineTrans.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ using namespace std;
#include <nppcore.h>
#include <nppi.h>

#include "ErrorCode.h"
#include "FanczosIpl.h"

// 宏:M_PI
// π值。对于某些操作系统,M_PI可能没有定义,这里补充定义 M_PI。
Expand Down
1 change: 1 addition & 0 deletions okano_3_0/AffineTrans.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "ErrorCode.h"
#include "Image.h"
#include "FanczosIpl.h"


// 宏:AFFINE_SOFT_IPL
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/BilateralFilter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/BilinearInterpolation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
2 changes: 0 additions & 2 deletions okano_3_0/Binarization.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// 实现图像的多阈值二值化图像生成操作

#include "Binarization.h"
#include "Binarize.h"

#include <stdio.h>
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:BINARIZE_PACK_LEVEL
// 定义了一个线程中计算的像素点个数,若该值为4,则在一个线程中计算2 ^ 4 = 16
Expand Down
1 change: 1 addition & 0 deletions okano_3_0/Binarization.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define __BINARIZATION_H__

#include "Image.h"
#include "Binarize.h"

// 类:Binarization
// 继承自:无
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/Binarize.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/ConnectRegion.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/ConnectRegionNew.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_H
// 定义了默认的一个线程块处理图像的行数。
Expand Down
3 changes: 0 additions & 3 deletions okano_3_0/ConsolidateAndIdentifyContours.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"
#include "Template.h"
#include "TemplateFactory.h"


// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
Expand Down
3 changes: 3 additions & 0 deletions okano_3_0/ConsolidateAndIdentifyContours.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include "Thinning.h"
#include "Binarize.h"

#include "Template.h"
#include "TemplateFactory.h"


// 类:ConsolidateAndIdentifyContours
// 继承自:无
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/ContourMatch.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/CovarianceMatrix.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <iostream>
#include "CovarianceMatrix.h"
#include "ErrorCode.h"
using namespace std;
#define DIMENSION 3

Expand Down
1 change: 0 additions & 1 deletion okano_3_0/Curve.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <fstream>
using namespace std;

#include "ErrorCode.h"

// 宏:SMCURVE_VALID 和 SMCURVE_NOT_VALID
// 定义了 smCurveCordiXY 是否有效的范围值。
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/CurveFluctuation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// 创建人:邱孝兵

#include "CurveFluctuation.h"
#include "ErrorCode.h"
#include <iostream>
using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion okano_3_0/CurveTopology.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 曲线间的相位关系

#include "CurveTopology.h"
#include "Image.h"

#include <stdio.h>
#include <iostream>
using namespace std;
Expand Down
1 change: 1 addition & 0 deletions okano_3_0/CurveTopology.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "Curve.h"
#include "ErrorCode.h"
#include "Image.h"

// 宏:CURVE_INCLUDE
// 表示包含关系
Expand Down
2 changes: 0 additions & 2 deletions okano_3_0/CurveTracing.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

using namespace std;

#include "Template.h"
#include "TemplateFactory.h"

// 宏:CURVE_VALUE(曲线最大数目)
// 设置图像能获得的曲线最大数目
Expand Down
2 changes: 2 additions & 0 deletions okano_3_0/CurveTracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include "Image.h"
#include "DynamicArrays.h"
#include "ErrorCode.h"
#include "Template.h"
#include "TemplateFactory.h"


// 类:CurveTracing(曲线跟踪)
Expand Down
1 change: 0 additions & 1 deletion okano_3_0/FeatureVecArray.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// 创建人:邱孝兵

#include "FeatureVecArray.h"
#include "ErrorCode.h"


// 宏 DELETE_FEATUREVECARRAY_HOST (删除 Host 端特征向量)
Expand Down
2 changes: 2 additions & 0 deletions okano_3_0/FeatureVecArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#ifndef __FEATUREVECARRAY_H__
#define __FEATUREVECARRAY_H__



// 结构体:FeatureVecArray(特征向量组)
// 该结构体定义了特征向量组的数据结构,组成这个向量组的每个向量都是五维的,
// 这五维分别是 X 坐标、 Y 坐标, CV,SD,NC,此外还有向量组的大小 count
Expand Down
3 changes: 1 addition & 2 deletions okano_3_0/FillCoor.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "FillCoor.h"
#include "ImageDrawer.h"
#include "ImgConvert.h"

#include <iostream>
#include <stack>
using namespace std;
Expand Down
3 changes: 3 additions & 0 deletions okano_3_0/FillCoor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include "Image.h"
#include "CoordiSet.h"
#include "ErrorCode.h"
#include "ImageDrawer.h"
#include "ImgConvert.h"

#include<string>
using namespace std;

Expand Down
3 changes: 0 additions & 3 deletions okano_3_0/FreckleFilter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#include <cmath>
using namespace std;

#include "ErrorCode.h"
#include "Template.h"
#include "TemplateFactory.h"

// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块的尺寸。
Expand Down
2 changes: 2 additions & 0 deletions okano_3_0/FreckleFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@

#include "Image.h"
#include "ErrorCode.h"
#include "Template.h"
#include "TemplateFactory.h"

// 宏:VAR_TH
// 表示该滤波处理将用方差阈值法
Expand Down
3 changes: 1 addition & 2 deletions okano_3_0/GaussianSmoothxy.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// 实现对curve的高斯平滑

#include "GaussianSmoothxy.h"
#include "ErrorCode.h"
#include "Curve.h"


// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块尺寸。
Expand Down
2 changes: 0 additions & 2 deletions okano_3_0/HoughRec.cu
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// HoughRec.cu
// 实现 Hough 变换检测矩形
#include "ImgConvert.h"
#include "HoughRec.h"
#include "ImageDrawer.h"
#include <iostream>
#include <fstream>
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions okano_3_0/HoughRec.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "HoughLine.h"
#include "cuda_runtime.h"
#include "ImageDrawer.h"
#include "ImgConvert.h"

#include<string>
using namespace std;
Expand Down
11 changes: 1 addition & 10 deletions okano_3_0/ImageMatch.cu
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
// ImageMacth.cu
// 实现对图像进行匹配的操作

#include "ConnectRegion.h"
#include "ErrorCode.h"
#include "ImageMatch.h"
#include "LabelIslandSortArea.h"
#include "Normalization.h"
#include "Rectangle.h"
#include "RoiCopy.h"
#include "SmallestDirRect.h"
#include "Template.h"
#include "TemplateFactory.h"


// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块尺寸
Expand Down
10 changes: 9 additions & 1 deletion okano_3_0/ImageMatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@
#define __IMAGEMATCH_H__

#include "Image.h"
#include "Rectangle.h"
#include "RotateTable.h"
#include "ConnectRegion.h"
#include "ErrorCode.h"
#include "LabelIslandSortArea.h"
#include "Normalization.h"
#include "Rectangle.h"
#include "RoiCopy.h"
#include "SmallestDirRect.h"
#include "Template.h"
#include "TemplateFactory.h"

// 结构体:MatchRes(匹配后得到的结果)
// 该结构体定义了匹配后得到的结果,包括最佳匹配位置,最佳匹配对应的旋转角以及最
Expand Down
4 changes: 1 addition & 3 deletions okano_3_0/InscribedCircle.cu
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

using namespace std;

#include "Template.h"
#include "TemplateFactory.h"
#include "SortArray.h"


// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块尺寸。
Expand Down
4 changes: 3 additions & 1 deletion okano_3_0/InscribedCircle.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#include "Image.h"
#include "DynamicArrays.h"
#include "ErrorCode.h"

#include "Template.h"
#include "TemplateFactory.h"
#include "SortArray.h"

// 类:InscribedCircle(内接圆)
// 继承自:无
Expand Down
2 changes: 1 addition & 1 deletion okano_3_0/LabelIslandSortArea.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 实现区域排序算法

#include "LabelIslandSortArea.h"
#include "Histogram.h"


#include <iostream>
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion okano_3_0/LabelIslandSortArea.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "Image.h"
#include "ErrorCode.h"

#include "Histogram.h"

// 类:LabelIslandSortArea(区域排序类)
// 继承自:无
Expand Down
3 changes: 1 addition & 2 deletions okano_3_0/LinearFilter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

#include <iostream>
#include "LinearFilter.h"
#include "ErrorCode.h"
#include "ImageDiff.h"


// 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y
// 定义了默认的线程块尺寸
Expand Down
3 changes: 2 additions & 1 deletion okano_3_0/LinearFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

#include "Image.h"
#include "Template.h"

#include "ErrorCode.h"
#include "ImageDiff.h"

// 宏:LNFT_COUNT_DIV
// 用于设置 LinearFilter 类中的 impType 成员变量,告知类的实例选用邻域像素总和
Expand Down
3 changes: 1 addition & 2 deletions okano_3_0/LocalCluster.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// 局部聚类

#include "LocalCluster.h"
#include "Image.h"
#include "ErrorCode.h"


#include <iostream>
#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions okano_3_0/LocalCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "Image.h"
#include "ErrorCode.h"


// 类:LocalCluster
// 继承自:无
// 给定一张图像略去图像的边缘部分,在每一个点的八个方向上各求出
Expand Down
29 changes: 1 addition & 28 deletions okano_3_0/Makefile
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
ALGNAMES := Image Matrix Template CoordiSet TemplateFactory AffineTrans \
RotateTable SelectShape SortArray Histogram HistogramSpec \
Threshold BoundingRect Flip Binarize Morphology ConnectRegion \
LabelIslandSortArea LinearEnhancement FillUp ImageDiff \
ImageHide Moments GeometryProperties Normalization \
FreckleFilter LocalCluster DownSampleImage HoughLine \
BilateralFilter MultiThreshold BilinearInterpolation \
FeatureVecCalc FeatureVecArray ImageMatch ScanArray \
SalientRegionDetect RoiCopy RobustEdgeDetection \
PerspectiveTrans FanczosIpl OtsuBinarize LinearFilter \
WorkAndObjectMatch Thinning ImageScaling EdgeCheck \
SmoothVector SegmentedScan HoughCircle ConvexHull \
Segmentation SimpleRegionDetect Rectangle SmallestDirRect \
HoughRec GetContourSet ImageDrawer ImgConvert ImageOverlay \
TorusSegmentation IsolatedPoints InnerDigger ImageToText \
Tattoo ImageStretch Mosaic Complex Mandelbrot Binarization \
Compact FlutterBinarize Curve Zoom Julia Reduce \
ConnectRegionNew Multidecrease DiffPattern CurveFluctuPropers \
CurveFluctuation SuperSmooth ThresholdSegmentation \
DynamicArrays Graph LearningFilter FillCoor RegionGrow \
CurveTracing GaussianElimination PriFeatureCheckC \
HistogramDifference CurveTopology ICcircleRadii \
GaussianSmoothImage GaussianSmoothxy DouglasPeucker SalientImg \
LocalHistogramEqualization OtsuForThree ClusterLocalGray \
ContourMatch CovarianceMatrix InscribedCircle EdgeDetection \
GeoPrimaryProperties OperationFunctor CombineImage \
ConsolidateAndIdentifyContours ImageFilter CurveConverter \
FillCurve SimpleBrightnessGradient MultiConnectRegion
ALGNAMES := Image AffineTrans

INCFILES := ErrorCode.h $(addsuffix .h, $(ALGNAMES))
OBJFILES := main.o $(addsuffix .o, $(ALGNAMES))
Expand Down
Loading

0 comments on commit 44344dc

Please sign in to comment.