#https://github.com/opencv/opencv_contrib/blob/4.x/modules/ximgproc/src/ridgedetectionfilter.cpp #opencv 中的脊检测滤波 #https://www.ngui.cc/el/392223.html #Halcon_二维测量_Angio lines_gauss 算子 #https://www.bilibili.com/video/BV17b4y167By #图像处理 提取脊线(单像素边缘轮廓)(日盛sdk) #https://zhuanlan.zhihu.com/p/61685241?from_voters_page=true #https://imagej.net/plugins/ridge-detection #https://github.com/thorstenwagner/ij-ridgedetection #ImageJ 脊线检测插件 #https://gitlab.gwdg.de/mpi-dortmund/sphire/ridge_detection #python翻译 ij-ridgedetection GitHub - DarisaLLC/ridge_strands: Stegner's Ridge Detection in C++
【5.11】Hessian-steger-git-readme - melo11 - 博客园 TODO: #实现细节及理论学习
贴段无用的代码,仅因文章质量不佳!
def get_lines(self,in_img): """ Look for the contours line in the image. It returns all the found line :param in_img: image :return: """ try: cols, rows = in_img.shape except AttributeError: cols, rows = in_img.size self.check_sigma(cols, rows) imgpxls2 = np.reshape(in_img, cols*rows) #normalize the image to 0:255 that is the same as convert from 32bit to 8bit in imageJ if max(imgpxls2)>255 or min(imgpxls2)<0: imgpxls2 = normalizeImg(imgpxls2,new_min=INTEGER_8BIT_MIN,new_max=INTEGER_8BIT_MAX,return_Aslist=False) contours = list() # = new Lines(in_img.getSliceNumber()); detect_lines(image=imgpxls2, width=cols, height=rows, contours=contours, sigma=self.params.get_sigma(), low=self.params.get_lower_Threshold(), high=self.params.get_upper_Threshold(), mode=self.params.get_darkline(), compute_width=self.params.get_estimate_width(), correct_pos=self.params.get_correct_position(), extend_lines=self.params.get_doExtendLine(), junctions=self.junctions)
....