关闭
当前搜索:

简单的实现JavaFX与OpenCV结合的实例

package com.xiuye.image; import java.awt.image.BufferedImage; import java.awt.image.DataBufferByte; import org.opencv.core.Mat; import javafx.application.Application; import javafx.embed.swing.Swin......
阅读(35) 评论(0)

JavaFX Demo4

package com.xiuye.javafx; import javafx.application.Application; //import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext;......
阅读(24) 评论(0)

JavaFX Demo3

package com.xiuye.javafx; import javafx.application.Application; import javafx.geometry.Point3D; import javafx.scene.AmbientLight; import javafx.scene.Group; import javafx.scene.PerspectiveCamera; im......
阅读(21) 评论(0)

JavaFX Demo2

package com.xiuye.javafx; import javafx.application.Application; import javafx.application.ConditionalFeature; import javafx.application.Platform; import javafx.geometry.Point3D; import javafx.scene.......
阅读(21) 评论(0)

JavaFX Demo1

package com.xiuye.javafx; import java.util.Random; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; import javafx.application.Application; import......
阅读(44) 评论(0)

用OpenCV随意写的对图像的处理10

#include"OpenCVLib2.hpp" using namespace cv; int main(){ /** * [ * cosA -sinA * sinA cosA * ] * * A = pi/2 (90) * [ * 0 -1 * 1 0 * ] *......
阅读(25) 评论(0)

用OpenCV随意写的对图像的处理9

Mat MyRGB2Gray(const Mat& srcImg){ Mat dst(srcImg.rows,srcImg.cols,CV_8UC1,Scalar::all(0)); for(int i=0;i<srcImg.rows;i++){ for(int j=0;j<srcImg.cols;j++){ int b...
阅读(41) 评论(0)

用OpenCV随意写的对图像的处理8

/** * 图像在每个维度上(width,height)扩大原来的两倍. * 新增偶数列偶数行,值为0. * 使用某种过滤算法填充偶数行列. * 因为图像放大后,新增像素点的值是未知的,是根据相邻像素点推测的. * 而推测的方法可以是过滤器平滑化(smooth)处理哪些无值的点. */ Mat MyLargeTwice(const Mat& srcImg,int oddNum/*声明上...
阅读(48) 评论(0)

用OpenCV随意写的对图像的处理7

Mat MySmallTwice(const Mat& srcImg){ int rows = srcImg.rows/2; int cols = srcImg.cols/2; Mat dstImg(rows,cols,srcImg.type()); /** * * get rid of even lines (rows,cols) ...
阅读(34) 评论(0)

OpenCV 形态学滤波综合实例

#include"OpenCVLib2.hpp" using namespace cv; Mat g_srcImg,g_dstImg; int g_nElementShape = MORPH_RECT; int g_nMaxIterationNum = 10; int g_nOpenCloseNum = 0; int g_nErodeDilateNum = 0; int g_nTopBlackH...
阅读(59) 评论(0)

用OpenCV随意写的对图像的处理6

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImg = imread("p1.jpg"); imshow("Origin",srcImg); //dilate(src,element) - erode(src,element) Mat&& dstImg = MyDilateF...
阅读(41) 评论(0)

用OpenCV随意写的对图像的处理5

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat srcImg = imread("p1.jpg"); imshow("Origin",srcImg); //Open Op = dilate(erode(src,element)) Mat&& dstImg = MyDilateFilter...
阅读(49) 评论(0)

用OpenCV随意写的对图像的处理4

Mat MyErodeFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat.cols,inputMat.type()); for(int i=0;i<inputMat.rows;i++){ for(int j=0;j<inputMat.cols;j++){ ...
阅读(40) 评论(0)

用OpenCV随意写的对图像的处理3

Mat MyDilateFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat.cols,inputMat.type()); for(int i=0;i<inputMat.rows;i++){ for(int j=0;j<inputMat.cols;j++){ ...
阅读(42) 评论(0)

用OpenCV随意写的对图像的处理2

#include #include"MyBlur.hpp" using namespace cv; Mat MyMeanFilter(Mat& inputMat,int oddNum){ Mat dstImg(inputMat.rows,inputMat.cols,inputMat.type()); for(int i=0;i<inputMat.rows;i++){...
阅读(79) 评论(0)

OpenCV 线性滤波简单示例

#include"OpenCVLib2.hpp" using namespace cv; Mat g_srcImg,g_dstImg1,g_dstImg2,g_dstImg3; int g_nBoxFilterValue = 3; int g_nMeanBlurValue = 3; int g_nGaussianBlurValue = 3; static void on_BoxFilter(i...
阅读(61) 评论(0)

html多文件和FormData

FormData function upload(){ log("Clicked!"); var tagElement = document.getElementById("files"); log(tagElement); var fil...
阅读(42) 评论(0)

MongoDB创建用户和Java连接MongoDB

> use test switched to db test > db.createUser({user:"xiuye",pwd:"123456",roles:[]}) Successfully added user: { "user" : "xiuye", "roles" : [ ] } > show tables; system.users system.version > db.system...
阅读(92) 评论(0)

用OpenCV随意写的对图像的处理1

#include"OpenCVLib2.hpp" using namespace cv; int main(){ Mat img = imread("p1.jpg"); imshow("Origin",img); double h[3][3] = { {0.111,0.111,0.111}, {0.111,0.111,0.111}, ...
阅读(90) 评论(0)

OpenCV 离散傅里叶变换

#include"OpenCVLib2.hpp" using namespace cv; int main(){ println("Scalar:all(1) = ",Scalar::all(1)); /** * imread flags * IMREAD_UNCHANGED * If set, return the loaded image ...
阅读(41) 评论(0)
462条 共24页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:217681次
    • 积分:5684
    • 等级:
    • 排名:第5477名
    • 原创:344篇
    • 转载:119篇
    • 译文:0篇
    • 评论:24条
    文章分类
    最新评论