自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 Unsigned char*格式彩色图转换为QImage格式

最近用QT显示图像,内存中的图像数据是以GBR顺序放在一个Unsigned char*数组中,需要将数组中数据转换成QImage格式unsigned char *pImage;QImage img = QImage(width, height, QImage::Format_RGB32);for(int i = 0; i<height; i++){int t = i*w...

2020-03-05 10:59:06 1869

转载 caffe 生成label文件的代码备份

# -*-coding:utf-8-*-import osimport os.pathdef write_txt(content, filename, mode='w'): """保存txt数据 :param content:需要保存的数据,type->list :param filename:文件名 :param mode:读写模式:'w' ...

2019-07-23 10:11:20 146

转载 imgaug批处理图像

#!usr/bin/python# -*- coding: utf-8 -*-import cv2from imgaug import augmenters as iaaimport os # Sometimes(0.5, ...) applies the given augmenter in 50% of all cases,# e.g. Sometimes(0.5, Gauss...

2019-07-18 15:36:03 1053 1

原创 imgaug安装

记录一下安装和使用imgaug的步骤:我电脑安装了Python3.61.输入指令:pip install six numpy scipy matplotlib scikit-image opencv-python imageio pip install imgaug2.遇到错误:OSError: [WinError 126] 找不到...

2019-07-18 11:45:23 639

原创 Linux系统调用libjpeg遇到的问题

最近在Linux系统下程序调用libJPEG来读JPG格式图像,遇到了问题:JPEG parameter struct mismatch: library thinks size is 664, caller expects 632。原因:我用的jconfig.h头文件是Windows下编译,并且可能还是libjpeg不同版本的源码编译生成的,和我Linux系统下生成的jconfig.h头文...

2019-07-17 09:05:29 1710

原创 opencv多幅图像的拼接算法

现在正在做的一个项目,现将代码备份一下,循环可以设置任意幅图像拼接。#ifndef debug#include   #include  #include #include  #include  #include  #include  #include   using namespace std;  using namespace cv; #inclu

2017-11-17 08:32:40 7550 8

基于超像素和elm的图像分类方法源码

内含训练样本,分类数据和一整套matlab代码,可直接运行,作者是参考 Spectral-Spatial Hyperspectral Image Classification Using Superpixel and Extreme Learning Machines文章自行编写的,效果良好。

2017-11-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除