自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

4月16!的博客

寡言,心中却有一片海。

  • 博客(202)
  • 资源 (2)
  • 收藏
  • 关注

原创 fdatool中的幅值响应 怎么计算

假设滤波后的数据峰峰值变成95*2;(95*2是滤波后的数据的峰峰值,不是fft后的值)对应的幅值响应(db):20*log10(190/200)fdatool滤波器设计工具:幅值响应图可以看到。滤波前的数据的峰峰值是100*2;对应的幅值响应(db)也是。

2024-05-14 17:05:38 119

原创 UserWarning: loaded more than 1 DLL from .libs:

有numpy和(类似numpy-1.23.0.dist-info)的文件夹,把numpy-1.23.0.dist-info删掉。C:\Users\Administrator\.conda\envs\创建的环境名字\Lib\site-packages。如果有多个文件,只保留类似。

2024-02-21 14:49:18 211

原创 itk binaryimage Contour (edge)

【代码】itk binaryimage Contour (edge)

2023-12-27 16:40:22 429

原创 一元四次方程解法,亲测ok

自己写的不行,这个博主的完全ok,赞!

2023-12-12 14:12:09 141

原创 IIR 滤波器的C++实现 亲测ok

【代码】IIR 滤波器的C++实现 亲测ok。

2023-11-30 11:10:59 196

原创 nnunetv2 .pth 转 .onnx (Tag=2.0/2.1)

转化为onnx后可以转化为engine文件,方便在c++使用;(可以移步tensorRT分类中看)nnunet v2版本的模型转化为onnx。

2023-11-30 11:03:31 641 16

原创 python .onnx 转 .engine亲测ok

python版本 onnx文件转engine

2023-11-30 10:31:22 915 8

原创 SVD 最小二乘法解 亲测ok!

其中U和V为半酉阵,分别满足。这就是线性最小二乘问题的解。为U的前n列矩阵,即。

2023-11-23 15:16:08 417

原创 Eigen::Matrix 转 std::vector 亲测ok!

【代码】Eigen::Matrix 转 std::vector 亲测ok!

2023-11-23 10:57:37 435

原创 vector中查找复杂的元素

例如: std::vector<std::vector<double>>或者 std::vector<my_struct>

2023-11-09 11:31:14 117

原创 matlab 拟合三维平面

拟合

2023-07-20 13:52:32 664

原创 python openpyxl复制原始excel,包括格式和批注

复制原始excel,包括格式和批注

2023-07-10 14:45:42 1855

原创 python 复制excel的某些行放入新的excel表格

excel操作

2023-07-07 18:19:09 2517 2

原创 FIR 滤波器参数意义 && IIR滤波器

fir滤波器设计参考

2022-12-08 11:15:16 3184 1

原创 Gazebo:Binary Installation on Windows

conda gazebo windows

2022-10-13 10:54:27 1071 1

原创 std::vector 转 / 数组 / 转 / Eigen::Matrix

数据类型转化

2022-07-14 17:34:23 3291

原创 指针数据 传进 数组,vector,valarray

数据转化

2022-07-07 16:30:44 317

原创 Ubuntu20.4 ROS2 foxy movelt2

虚拟机下ubuntu安装ros

2022-06-20 11:40:34 586 1

原创 matlab Robotics System Toolbox 解析解

机器人库解析解示例

2022-06-15 10:05:41 393

原创 安装出现2503 error

输入命令:msiexec /package "D:\TortoiseGit-2.13.0.1-64bit.msi"

2022-05-14 16:55:28 263

原创 trt 使用trtexec工具ONNX转engine

首先说明,我用的模型是一个动态模型,内部需要设置--minShapes=input:1x1x80x92x60 --optShapes=input:2x1x80x92x60--maxShapes=input:10x1x80x92x60min batch=1opt batch =2max batch =10其次,我用的int8量化;量化需要设置calib文件夹;D:\Download\TensorRT-8.2.1.8.Windows10.x86_64.cuda-11.4....

2022-04-15 15:36:41 4565 4

原创 surface dice

nnUNet中的设计surface dice的计算方法:import numpy as npfrom medpy.metric.binary import __surface_distancesdef normalized_surface_dice(a: np.ndarray, b: np.ndarray, threshold: float, spacing: tuple = None, connectivity=1): """ This implementation dif.

2022-04-12 14:08:43 1301

原创 nnunetv1 .model to .onnx

动态输入batch_size:就是在末尾加上 dynamic_axes = {'input': {0: 'batch_size'},'output': {0: 'batch_size'}}为什么是inputoutput因为我的输入和输出都只有一个,且名字是我个人命名为 input_names=['input'], output_names=['output'],import torchfrom torch import nnimp...

2022-03-10 14:57:40 1051 2

原创 ITK 图像缩放Shrink Image

ITK: SphinxExamples/src/Filtering/ImageGrid/ShrinkImage/Code.cxx3D image:下面按维度缩小:0:缩小为原来的1/41:缩小为原来的1/42:按原来的尺寸不变 using ShrinkImageFilterType = itk::ShrinkImageFilter<ImageType, ImageType>; ShrinkImageFilterType::Pointer shrinkFilte

2022-02-22 14:09:05 492

原创 float* 数据传进vector

std::vector<int> data; int a[10] = { 1,2,3,4,5,6,7,8,9,0 }; int *p1 = &a[0]; int b[10] = { 2,2,3,4,5,6,7,8,9,2 }; int *p2 = &b[0]; data.insert(data.end(), p1, p1 + 10); data.insert(data.end(), p2, p2 + 10);

2022-01-26 16:25:14 1575

原创 Eigen::tensor slice操作

Eigen::Tensor<int, 2> a(4, 3); a.setValues({ {0, 100, 200}, {300, 400, 500}, {600, 700, 800}, {900, 1000, 1100} }); Eigen::array<Eigen::DenseIndex, 2> offsets = { 1, 0 }; Eigen::array<Eigen::DenseIndex, 2> extents = { 2, 2 };.

2022-01-21 18:41:07 1821 2

原创 display mask

class SegmentDisplay {public: SegmentDisplay() = default; template <typename ImageType> void addSourceImage(typename ImageType::Pointer image) { auto converter = itk::ImageToVTKImageFilter<ImageType>::New(); converter->SetInput(ima.

2021-12-22 11:31:33 294

原创 tensorRT8 save/load Egine

save: std::ofstream p(filename, std::ios::binary); auto gieModelStream = mEngine->serialize(); p.write((const char*)gieModelStream->data(), gieModelStream->size()); p.close(); gieModelStream->destroy();load : struct st.

2021-12-14 10:41:13 3608 10

原创 onnxruntime

#include <iostream>#include <assert.h>#include <vector>#include <onnxruntime_cxx_api.h>#include "cuda_provider_factory.h"#include <ctime>int main(int argc, char* argv[]){ bool useCUDA{ true }; const wchar_t.

2021-12-02 15:47:55 1090

原创 onnxruntime cuda

#include <onnxruntime_cxx_api.h>#include <onnxruntime_c_api.h>#include <cuda_provider_factory.h>#include <iostream>#include <vector>struct MNIST { MNIST() { env = Ort::Env(ORT_LOGGING_LEVEL_VERBOSE, "test.

2021-12-02 15:45:56 1622

原创 获取文件夹下所有的.lib文件名

cd filename关键命令:dir /b *.lib>1.txt

2021-11-24 14:27:34 920

原创 vs 删除不要的库文件、lib等信息

VS中删除以前增加的库文件_程序猿的视界-CSDN博客_vs删除库目根据需求要添加新的库到VS中方法1:项目->属性->C/C++->附加包含目录:填写附加头文件所在目录 ,分号间隔多项项目->属性->链接器->附加库目录:填写附加依赖库所在目录分号间隔多项项目->属性->链接器(点前面的+展开)->输入->附加依赖项:填写附加依赖库的名字.lib空格间隔多项方法二:创建属性表,每次创建工程后在属性管理器中Debug|win32下添https:..

2021-11-23 15:05:13 2283

原创 日容纷纷无法

<div id="article_content" class="article_content clearfix"> <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-1a85854398.css"> <div id="content_views" class=...

2021-11-06 14:13:28 65

原创 itk itkFlipImageFilter任意轴翻转

#include "itkImage.h"#include "itkImageFileReader.h"#include "itkImageFileWriter.h"#include "itkFlipImageFilter.h"template <typename ImageType>typename ImageType::Pointer Flip(typename ImageType* image, itk::FixedArray<bool,2> flipAxes).

2021-11-02 15:24:11 452

原创 itk fillhole

1、二值补洞算法 itk::BinaryFillholeImageFilter typedef itk::BinaryFillholeImageFilter<ImageType> FillHoleType; FillHoleType::Pointer fillHoleFilter = FillHoleType::New(); fillHoleFilter->SetInput(reader->GetOutput()); fillHoleFilte..

2021-07-02 18:18:24 246

原创 ITK 体数据按切片逐张处理

#include"itkSliceBySliceImageFilter.h" typedef itk::Image< unsigned char, 2 > SliceImageType; auto fillHoleFilter = itk::BinaryFillholeImageFilter<SliceImageType>::New(); typedef itk::Image< unsigned char, 3 > charImageT.

2021-06-30 13:58:09 527 3

原创 vs 读/写txt文件内的数据

du'sh std::vector<int> data; std::ifstream myfile(tt.txt"); int uu = 0; if (!myfile.is_open()) { std::cout << "can not open this file" << std::endl; return 0; } while (myfile.good() &&am.

2021-06-03 10:53:26 2228

转载 itk 多种区域生长算法总结

1 Region Growing区域增长算法的基本思想:先选择一个种子区域(通常为一个像素或一些像素点),认为这个种子区域是在被分割的对象范围之内。所选种子区域的邻域像素会被计算从而决定它是否包含在该种子区域里。如果根据某种准则,种子区域的邻域像素应该包含进来,则该邻域像素会被包含到种子区域中去,然后判断下一个像素点,最终种子区域会越来越大,当所有的像素点判断完毕,分割结束。根据判断像素点是否位于种子区域内,区域增长算法主要有如下类型: 1.1 Connected Threshold连通阈值.

2021-05-19 09:55:27 1115

原创 ITK Compute Min, Max, Variance and Mean of Image

#include "itkStatisticsImageFilter.h" using StatisticsImageFilterType = itk::StatisticsImageFilter<ImageType>; StatisticsImageFilterType::Pointer statisticsImageFilter = StatisticsImageFilterType::New(); statisticsImageFilter->SetInput...

2021-04-23 11:38:38 169

原创 ITK copy image

在赋值两个新的图像时遇到问题:image1=Image;image2=Image;如果对image1进行处理后,Image 和 image2都会变化为image1,这样是不对的;可以用下面这个赋值函数进行处理:template<class TInputImage>class itk::ImageDuplicator< TInputImage >A helper class which creates an image which is perfect cop

2021-04-23 11:36:33 253

VTK 培训手册VTK 培训手册

VTK培训师手册,关于可视化管线,VTK基础,三维体数据,VTK数据接口对象,与视窗系统交互,VTK对象说明,可视化流水线,功能算法等

2019-03-11

oracle数据库的功能

sql语言,创建表,修改表,字符串操作,日期,数值操作,视图,序列,索引。

2018-07-10

空空如也

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

TA关注的人

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