摘要: 目录:读取图像,获取属性信息,图像ROI,图像通道的拆分和合并 1. 读取图像 像素值返回:直接使用坐标即可获得, 修改像素值:直接通过坐标进行赋值 能用矩阵操作,便用,使用numpy中的array.item()以及array.itemset()会加快速度,逐渐修改像素会慢 2. 图像属性: 行、列 阅读全文
posted @ 2019-08-13 10:35 西瓜刀刀刀 阅读(604) 评论(0) 推荐(0) 编辑
摘要: function out1 = plotroc(varargin) %PLOTROC Plot receiver operating characteristic. % % plotroc(targets,outputs) takes target data in 1-of-N form (each column % vector is all zeros with a single 1 ind... 阅读全文
posted @ 2018-07-23 22:07 西瓜刀刀刀 阅读(438) 评论(0) 推荐(0) 编辑
摘要: function [tpr,fpr,thresholds] = roc(targets,outputs) %ROC Receiver operating characteristic. % % The receiver operating characteristic is a metric used to check % the quality of classifiers. For ea... 阅读全文
posted @ 2018-07-23 22:07 西瓜刀刀刀 阅读(236) 评论(0) 推荐(0) 编辑
摘要: function [X,Y,T,auc,optrocpt,subY,subYnames] = ... perfcurve(labels,scores,posClass,varargin) %PERFCURVE Compute Receiver Operating Characteristic (ROC) curve or other % performance curve for c... 阅读全文
posted @ 2018-07-23 22:05 西瓜刀刀刀 阅读(611) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: (1)思想1:使用queue ,对二叉树进行层遍历。 C++: 阅读全文
posted @ 2017-12-18 22:07 西瓜刀刀刀 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2017-12-18 21:47 西瓜刀刀刀 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou 阅读全文
posted @ 2017-12-15 10:19 西瓜刀刀刀 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.*args args是非关键字参数,可以理解为形参,为了方便记忆我理解它是arguments的缩写。 2.*kwargs kwargs是键值对参数,为了方便记忆我理解它是key word arguments的缩写。 3.setattr() set是设置,attr是属性,综合起来就是设置属性的函数 阅读全文
posted @ 2017-12-14 20:37 西瓜刀刀刀 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: 数字转换成字符串: num=123 str='%d' %num str就变成了"123" 阅读全文
posted @ 2017-12-14 16:34 西瓜刀刀刀 阅读(5543) 评论(0) 推荐(0) 编辑
摘要: 返回真假时,需要为: return True return False 阅读全文
posted @ 2017-12-14 16:24 西瓜刀刀刀 阅读(7710) 评论(0) 推荐(0) 编辑