![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
医学图像处理
文章平均质量分 50
4月16!
平时记录用,不喜忽喷
展开
-
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 · 1357 阅读 · 0 评论 -
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 · 300 阅读 · 0 评论 -
itk itk::BSplineDeformableTransform
itk::BSplineDeformableTransform:可以实现变形配准【在ITK_VERSION_MAJOR >4 后变成itk::BSplineTransform】代码链接:(SphinxExamples/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/Code.cxx)https://itk.org/Doxygen/html/SphinxExamples_2src_2Core_2Transform_2Gl..原创 2021-04-01 17:50:34 · 625 阅读 · 0 评论 -
ITK 原图种子点经过roi、降采样后index的变化
原图像在vtk上交互时物理坐标和index的关系梳理:1、vtk交互:在vtk切片上得到的world point,用Image->TransformPhysicalPointToIndex(worldpoint)函数就可以得到在真实图像上的index;2、ITk图像的同一位置的 index 在提取 ROI 区域并 降采样 后变成什么?怎么算?下面的函数是我提取的ROI区域,然后对ROI区域进行降采样处理的代码:#include "itkRegionOfInterestImageFilte原创 2021-03-18 14:03:30 · 537 阅读 · 4 评论 -
ITK Examples/RegistrationITKv4/DeformableRegistration
Examples/RegistrationITKv4/DeformableRegistration1.cxx itk::fem::FEMRegistrationFilter<ImageType, ImageType, FEMObjectType>Examples/RegistrationITKv4/DeformableRegistration10.cxx itk::CurvatureRegistrationFilter<InternalImageType,Inter...原创 2021-03-17 16:43:41 · 372 阅读 · 2 评论 -
深度学习在医学图像处理中的应用
https://cloud.tencent.com/developer/news/172755里面有写论文和github代码链接原创 2019-10-16 11:34:47 · 1066 阅读 · 0 评论 -
DCMTK 读.dcm文件获取信息
下面链接是关于DCMTK读dcm文件 ,多帧Dcm图片的读取与拆分存储https://blog.csdn.net/m_buddy/article/details/53378627我是想得到病人的名字:摘取了部分代码,还没有亲测,等我好了,来更新!头文件:#include "dcmtk/config/osconfig.h"#include "dcmtk/dcmdata/dctk....原创 2019-03-15 17:45:26 · 1456 阅读 · 1 评论 -
VTK 读取ITK处理后显示
实例:VTK读数据,转ITK数据,用ITK处理后,转VTK数据,显示!重要代码:( 1 )VTK转ITK //VTK 转ITK typedef itk::VTKImageToImageFilter< ImageType> vtkToitkFilterType; vtkToitkFilterType::Pointer vtkToitkImageFilter ...原创 2019-03-18 09:38:13 · 1354 阅读 · 4 评论 -
VTK 图像处理相关链接
图像细化:http://www.itdaan.com/blog/source/bdbaa7cf3fd5.htmlvtkPolyData数据处理:http://tanqingbo.com/2017/08/24/vtkPolyData数据处理/...转载 2019-01-10 11:03:13 · 171 阅读 · 0 评论 -
医学图像处理中的深度学习模型
细胞病理学识别和疾病组织目标检测是目标人工智能技术在影像医学和病理方向的重要应用。 该技术主要是前期的预处理技术复杂,主要原因是因为医学的相关病理特征成因复杂,图像方面的随机误差很大(噪音),图像断层之间的重叠。例如如果对图像的颜色没有识别要求,为了训练和计算方便采用的降维处理是将其灰化处理,然后使用分割算法将其不同的形态结构分离,该过程包含先将其腐蚀再膨胀然后过滤(一般情况中值滤波能去掉白色噪...转载 2019-01-09 11:02:32 · 4367 阅读 · 0 评论 -
VTK 像素值输出和赋值
一般都是按照下面的程序进行的: vtkSmartPointer<vtkBMPReader> reader = vtkSmartPointer<vtkBMPReader>::New(); reader->SetFileName("test.bmp"); reader->Update(); in...原创 2019-01-08 13:21:10 · 906 阅读 · 0 评论 -
dcm图像转成Mat数据
代码:原博客:https://blog.csdn.net/m_buddy/article/details/51882584。 #include "stdafx.h"#include <stdlib.h>#include <iostream> //OPencv#include <opencv2/opencv.hpp> //DCMTK...转载 2018-11-27 11:18:12 · 2250 阅读 · 8 评论 -
DCMTK读取DICOM文件-----获取数据集-----建立DicomDIr
The following example shows how to load a DICOM file and output the patient's name:DcmFileFormat fileformat;OFCondition status = fileformat.loadFile("test.dcm");if (status.good()){ OFString...转载 2018-11-27 11:14:15 · 2337 阅读 · 0 评论 -
C语言读3D数据.raw文件
三维图像经常会以.raw文件的形式提供。Raw文件其实是存图像最简单的方式,是一种对图像无压缩的存储。实际上,这种格式就是把图像一维化的数组存储成文件,所以可以轻易的写出读取Raw文件的代码。不过由于这个文件不带自描述信息,所以在读的时候一定要清楚所读的文件是多少位的图像,长宽高是多少。假如知道数据的大小为301×324×56,8位,所以采用C++语言将其读为unsigned char数组的代码如...转载 2018-11-23 10:14:37 · 1244 阅读 · 2 评论