亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? imagesegmentation.h

?? 圖像分割算法
?? H
字號:
//Copyright (c) 2004-2005, Baris Sumengen
//All rights reserved.
//
// CIMPL Matrix Performance Library
//
//Redistribution and use in source and binary
//forms, with or without modification, are
//permitted provided that the following
//conditions are met:
//
//    * No commercial use is allowed. 
//    This software can only be used
//    for non-commercial purposes. This 
//    distribution is mainly intended for
//    academic research and teaching.
//    * Redistributions of source code must
//    retain the above copyright notice, this
//    list of conditions and the following
//    disclaimer.
//    * Redistributions of binary form must
//    mention the above copyright notice, this
//    list of conditions and the following
//    disclaimer in a clearly visible part 
//    in associated product manual, 
//    readme, and web site of the redistributed 
//    software.
//    * Redistributions in binary form must
//    reproduce the above copyright notice,
//    this list of conditions and the
//    following disclaimer in the
//    documentation and/or other materials
//    provided with the distribution.
//    * The name of Baris Sumengen may not be
//    used to endorse or promote products
//    derived from this software without
//    specific prior written permission.
//
//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
//HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
//EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
//NOT LIMITED TO, THE IMPLIED WARRANTIES OF
//MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
//CONTRIBUTORS BE LIABLE FOR ANY
//DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
//EXEMPLARY, OR CONSEQUENTIAL DAMAGES
//(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
//OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
//DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
//HOWEVER CAUSED AND ON ANY THEORY OF
//LIABILITY, WHETHER IN CONTRACT, STRICT
//LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
//OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
//OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//POSSIBILITY OF SUCH DAMAGE.


#pragma once
#ifndef IMAGE_SEGMENTATION_H
#define IMAGE_SEGMENTATION_H

#include <cmath>

#include "cimpl.h"
using namespace CIMPL;

#include "cimpltoolboxes.h"
using namespace MathCore;
using namespace Analysis;
using namespace LevelSetMethods;

namespace ImageProcessing
{

	//Histogram();
	//HistogramEqualize();


// Bunch of filters

	// Gaussian
	Matrix<float> Gaussian2D(int side, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> Gaussian2D(int side, double sigma_x, double angle = 0, double ratio = 1.0);

	// First derivative of Gaussian
	Matrix<float> FDGaussian2D(int side, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> FDGaussian2D(int side, double sigma_x, double angle = 0, double ratio = 1.0);

	// Second derivative of Gaussian
	Matrix<float> SDGaussian2D(int side, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> SDGaussian2D(int side, double sigma_x, double angle = 0, double ratio = 1.0);

	// Laplacian of Gaussian
	Matrix<float> LOG(int side, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> LOG(int side, double sigma_x, double angle = 0, double ratio = 1.0);


	// Difference of offset Gaussians
	Matrix<float> DOOG2D(int side, float sigma_x, float offset, float angle = 0, float ratio = 1.0);
	Matrix<double> DOOG2D(int side, double sigma_x, double offset, double angle = 0, double ratio = 1.0);

	Matrix<float> DOOG2DCentered(int side, float sigma_x, float offset, float angle = 0, float ratio = 1.0);
	Matrix<double> DOOG2DCentered(int side, double sigma_x, double offset, double angle = 0, double ratio = 1.0);


// Filter image with these filters

	Matrix<float> FilterGaussian2D(Matrix<float>& image, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterGaussian2D(Matrix<double>& image, double sigma_x, double angle = 0, double ratio = 1.0);

	// First derivative of Gaussian
	Matrix<float> FilterFDGaussian2D(Matrix<float>& image, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterFDGaussian2D(Matrix<double>& image, double sigma_x, double angle = 0, double ratio = 1.0);

	// Second derivative of Gaussian
	Matrix<float> FilterSDGaussian2D(Matrix<float>& image, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterSDGaussian2D(Matrix<double>& image, double sigma_x, double angle = 0, double ratio = 1.0);

	// Laplacian of Gaussian
	Matrix<float> FilterLOG(Matrix<float>& image, float sigma_x, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterLOG(Matrix<double>& image, double sigma_x, double angle = 0, double ratio = 1.0);
	
	// Difference of offset Gaussians
	Matrix<float> FilterDOOG2D(Matrix<float>& image, float sigma_x, float offset, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterDOOG2D(Matrix<double>& image, double sigma_x, double offset, double angle = 0, double ratio = 1.0);

	Matrix<float> FilterDOOG2DCentered(Matrix<float>& image, float sigma_x, float offset, float angle = 0, float ratio = 1.0);
	Matrix<double> FilterDOOG2DCentered(Matrix<double>& image, double sigma_x, double offset, double angle = 0, double ratio = 1.0);



// Several Edge Detectors
	
	// Some filter outputs
	//EdgeCanny();
	//EdgeNitzberg();
	//EdgeEdgeflow();

	// non-maxima suppression
	Matrix<float> NonMaximaSuppress(Matrix<float>& edgesMain, Matrix<float>& vectorX, Matrix<float>& vectorY);
	Matrix<double> NonMaximaSuppress(Matrix<double>& edgesMain, Matrix<double>& vectorX, Matrix<double>& vectorY);

	Matrix<int> NonMaximaMask(Matrix<float>& edges, Matrix<float>& vectorX, Matrix<float>& vectorY);
	Matrix<int> NonMaximaMask(Matrix<double>& edges, Matrix<double>& vectorX, Matrix<double>& vectorY);

	float Direction(float y, float x);
	double Direction(double y, double x);

	//Threshold();
	// hystherisys threshold (see Canny)
	//HystThreshold();



	// Edge tracing from non-maxima suppressed or thresholded edges.
	//TraceEdges();

	// Peron-Malik's Anisotropic diffusion
	Matrix<float>& PMAnisoDiff(Matrix<float>& image, float K, int iterations);
	Matrix<double>& PMAnisoDiff(Matrix<double>& image, double K, int iterations);
	MatrixList<float>& PMAnisoDiff(MatrixList<float>& image, float K, int iterations);
	MatrixList<double>& PMAnisoDiff(MatrixList<double>& image, double K, int iterations);

// Texture
	//GaborFilters();
	//GaborFilterOutputs();

// Edgeflow

	// both grayscale and multi-valued
	MatrixList<float> EdgeflowVectorField(Matrix<float>& image, int angles, float sigma, float offset, float ratio = 1.0, bool normalized = true);
	//MatrixList<double> EdgeflowVectorField(Matrix<double>& image, int angles, double sigma, double offset, double ratio = 1.0, bool normalized = true);
	MatrixList<float> EdgeflowVectorField(MatrixList<float>& image, int angles, float sigma, float offset, float ratio, bool normalized);

	Matrix<int> CreateFlowImage(Matrix<float>& xFlow, Matrix<float>& yFlow);

	// Edgeflow-based Anisotropic diffusion
	Matrix<float>& EFAnisoDiff(Matrix<float>& image, Matrix<float>& u, Matrix<float>& v, Matrix<float>& g, int iterations);
	Matrix<double>& EFAnisoDiff(Matrix<double>& image, Matrix<double>& u, Matrix<double>& v, Matrix<double>& g, int iterations);
	MatrixList<float>& EFAnisoDiff(MatrixList<float>& image, Matrix<float>& u, Matrix<float>& v, Matrix<float>& g, int iterations);
	MatrixList<double>& EFAnisoDiff(MatrixList<double>& image, Matrix<double>& u, Matrix<double>& v, Matrix<double>& g, int iterations);


	Matrix<int> GetEgdes(Matrix<float> &grads, Matrix<int> &thick, Matrix<int> &suppressed);

	float Angle(float x1, float y1, float x2,  float y2);
	void RGB2Lab(double R, double G, double B, double &L, double &a, double &b);
	void Lab2RGB(double L, double a, double b, double &R, double &G, double &B);
	MatrixList<float> RGB2Lab(MatrixList<float> input);
	MatrixList<float> Lab2RGB(MatrixList<float> input);

	Matrix<int> SegmentEF(Matrix<float> &im, bool normalized, float initScale, float scaleJump, float endScale, 
		float angleLimit, float ratioLimit, float smoothWeighting, float stopError, int accuracy);

	Matrix<int> SegmentEF(MatrixList<float> &im, bool normalized, float initScale, float scaleJump, float endScale, 
		float angleLimit, float ratioLimit, float smoothWeighting, float stopError, int accuracy);

// Curve evolution stuff






// GPAC





};


#endif




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99九九99精品| 免费三级欧美电影| 久久久综合激的五月天| 日韩一级视频免费观看在线| 欧美日韩日本视频| 欧美日韩免费一区二区三区| 欧美美女激情18p| 在线观看91av| 日韩欧美第一区| 久久精品一区八戒影视| 久久丝袜美腿综合| 欧美国产综合一区二区| 国产精品美女久久久久久久| 亚洲图片欧美激情| 亚洲综合色婷婷| 日产精品久久久久久久性色| 奇米精品一区二区三区四区| 蜜臀av性久久久久蜜臀aⅴ四虎| 蜜桃av噜噜一区| 国产精品白丝jk黑袜喷水| 国产成人av一区二区三区在线观看| 高清免费成人av| 91免费视频观看| 欧美精三区欧美精三区| 精品捆绑美女sm三区| 国产精品无人区| 亚洲最新在线观看| 久久精品久久99精品久久| 粉嫩av亚洲一区二区图片| 色激情天天射综合网| 日韩一区二区在线免费观看| 久久精品视频网| 一区二区三区不卡视频| 看国产成人h片视频| 99久久免费精品高清特色大片| 欧美三级三级三级| 一区二区三区.www| 精品一区二区三区免费毛片爱| 成人一区二区视频| 7878成人国产在线观看| 中文字幕精品—区二区四季| 五月天婷婷综合| www.欧美色图| 日韩欧美国产一区在线观看| 亚洲欧美一区二区不卡| 久久精品99国产精品| 日本电影欧美片| 久久久久久**毛片大全| 午夜精品视频在线观看| 懂色av一区二区三区免费看| 91精品国产高清一区二区三区蜜臀 | 久久色.com| 一区二区三区资源| 国产成人av电影在线观看| 欧美日韩一区在线| 中文av一区二区| 国产一区二区免费看| 欧美在线免费观看视频| 国产精品家庭影院| 国产美女娇喘av呻吟久久| 7878成人国产在线观看| 一区二区三区四区亚洲| av资源站一区| 久久综合丝袜日本网| 三级精品在线观看| 欧美天堂一区二区三区| 中文字幕在线免费不卡| 国产精品99久久久久久宅男| 亚洲精品免费在线播放| 国产麻豆精品一区二区| 精品免费国产一区二区三区四区| 亚洲午夜日本在线观看| 99久久综合国产精品| 中文子幕无线码一区tr| 国产精品一区二区你懂的| 精品久久久久一区二区国产| 天天综合色天天综合| 在线观看av不卡| 艳妇臀荡乳欲伦亚洲一区| 色94色欧美sute亚洲13| 亚洲图片你懂的| 91麻豆蜜桃一区二区三区| 一区在线播放视频| 色综合天天综合给合国产| 国产欧美一区二区精品婷婷| 免费看日韩精品| 欧美zozozo| 国产伦精一区二区三区| 久久精品视频在线看| 国产ts人妖一区二区| 国产精品欧美一区喷水| 北条麻妃国产九九精品视频| 国产欧美一区二区三区沐欲| 成人久久视频在线观看| 中文字幕一区二区三区不卡在线| 色婷婷综合久久| 亚洲精品国产无天堂网2021 | 亚洲国产视频直播| 91精品婷婷国产综合久久竹菊| 日本成人在线看| 欧美电视剧在线观看完整版| 国产精品91xxx| 亚洲精品高清在线| 制服视频三区第一页精品| heyzo一本久久综合| 一区二区免费在线播放| 日韩欧美在线影院| 成人精品亚洲人成在线| 一区二区三区欧美日韩| 欧美成人aa大片| 99精品欧美一区二区三区小说| 亚洲国产色一区| 久久综合久久99| 91福利国产精品| 狠狠狠色丁香婷婷综合久久五月| 亚洲婷婷综合色高清在线| 4438x亚洲最大成人网| 成人av影视在线观看| 亚洲v中文字幕| 国产精品久久国产精麻豆99网站| 欧美伊人久久久久久久久影院 | 日韩欧美亚洲一区二区| 99天天综合性| 国产在线不卡一卡二卡三卡四卡| 亚洲欧美偷拍卡通变态| 欧美精品一区二区三区视频 | 午夜精品成人在线视频| 国产精品美女久久久久av爽李琼| 欧美一区二区三区电影| 一道本成人在线| 国产高清不卡一区| 视频一区二区三区在线| 亚洲精品视频在线观看网站| 久久久五月婷婷| 欧美夫妻性生活| 欧美性高清videossexo| 91视频免费播放| 高清国产一区二区三区| 精品午夜一区二区三区在线观看 | 亚洲成人av中文| 亚洲免费观看高清完整版在线| 2021久久国产精品不只是精品| 欧美日韩成人一区二区| 色综合 综合色| 99国内精品久久| hitomi一区二区三区精品| 国产成人高清在线| 国产suv精品一区二区三区| 激情综合亚洲精品| 久久av资源站| 经典一区二区三区| 国内外成人在线| 韩国三级在线一区| 国产在线精品免费| 精品亚洲国产成人av制服丝袜| 久久精品噜噜噜成人88aⅴ| 免费欧美日韩国产三级电影| 日本最新不卡在线| 精一区二区三区| 激情综合色播五月| 国产老女人精品毛片久久| 精品一区二区av| 国产福利视频一区二区三区| 高清国产一区二区三区| av动漫一区二区| 91啪亚洲精品| 欧美日韩精品专区| 欧美一区二区啪啪| 精品91自产拍在线观看一区| 久久久噜噜噜久久人人看| 国产色产综合色产在线视频 | 亚洲综合成人在线| 亚洲国产精品自拍| 毛片不卡一区二区| 国产成人免费在线视频| 91色乱码一区二区三区| 欧美日韩色一区| 欧美成人a视频| 综合久久国产九一剧情麻豆| 亚洲一区二区三区美女| 蜜臀av国产精品久久久久| 高清久久久久久| 欧美日韩国产大片| 久久色.com| 亚洲成人免费影院| 国产一区二区三区在线观看免费视频 | 亚洲欧美国产毛片在线| 夜色激情一区二区| 久久精品国产久精国产爱| 国产成人精品免费网站| 欧美丝袜丝交足nylons图片| 欧美xxx久久| 一区二区三区免费看视频| 韩国三级中文字幕hd久久精品| 91麻豆免费观看| 久久精品人人做人人综合 | 亚洲国产乱码最新视频 | 欧美日本高清视频在线观看| 久久久国际精品| 首页国产欧美久久|