【设备】WIN10怎么用佳能LIDE120扫描仪? | 您所在的位置:网站首页 › 扫描仪安装成功用不了怎么办 › 【设备】WIN10怎么用佳能LIDE120扫描仪? |
【Python】随机划分数据集并生成VOC格式列表
石岩君: 简洁高效! 【Python】如何在文件夹里批量分割图片?ijiayan: 用上了 谢谢你的切割图像代码 Matlab循环读取txt文件并对其中数据进行计算最后导出为excelKK2896: 弄出来了,用Python比较容易实现 【Matlab】如何对二维矩阵进行线性/非线性插值?@Sean_: 写成了函数供大家参考 [code=plain] src = magic(10); scale_factor_width = 8; scale_factor_height = 8; [dst_bilinear, dst_bicubic] = test_interp(src,scale_factor_width,scale_factor_height); function [dst_bilinear, dst_bicubic] = test_interp(src, factor_width, factor_height) if ~isa(src, 'double') src = double(src); end width = size(src,2); height = size(src,1); x = 1:factor_width:get_index(width,factor_width); y = 1:factor_height:get_index(height,factor_height); [X,Y] = meshgrid(x,y); x = 1:get_index(width,factor_width); y = 1:get_index(height,factor_height); [Xq,Yq] = meshgrid(x,y); dst_bilinear = interp2(X,Y,src,Xq,Yq); dst_bicubic = interp2(X,Y,src,Xq,Yq,'bicubic'); figure(1); title("result of bilinear interpolate"); surf(dst_bilinear); colorbar; figure(2); title("result of bicubic interpolate"); surf(dst_bicubic); colorbar; end function index = get_index(i, scale_factor) index = (i - 1) * scale_factor + 1; end [/code] Matlab循环读取txt文件并对其中数据进行计算最后导出为excelZezeGuowang: 我也想问,你知道了吗? |
CopyRight 2018-2019 实验室设备网 版权所有 |