Error using subsindex Function 'subsindex' is not defined for values of class 'struct'.
clc; clear all; close all;
image_path = '/media/wangxiao/Elements/image_segment_backup/';
savePath = '/media/wangxiao/Seagate/wangxiao/additional_data/'; threshold = ; first_files = dir(image_path); for i = :length(first_files)
sec_file_name = first_files(i).name;
sec_path = [image_path, sec_file_name, '/'];
sec_files = dir(sec_path);
disp(['process the: ', sec_file_name, '---', num2str(i-), '/', num2str(length(first_files)-),' waiting . . . ']); for j = :length(sec_files)
third_file_name = sec_files(j).name;
third_path = [sec_path, third_file_name, '/'];
third_files = dir(third_path);
disp([' process the: ', third_file_name, '---', num2str(j-), '/', num2str(length(sec_files)-),' . . . ']); for k = :length(third_files)
fourth_files_name = third_files(k).name;
fourth_path = [third_path, fourth_files_name, '/'];
fourth_files = dir(fourth_path);
disp([' process the: ', fourth_files_name, '---', num2str(k-), '/', num2str(length(third_files)-),' . . . ']); for ii = :length(fourth_files)
fifth_file_name = fourth_files(ii).name;
fifth_path = [fourth_path, fifth_file_name, '/'];
fifth_files = dir(fifth_path);
disp([' process the: ', fifth_file_name, '---', num2str(ii-), '/', num2str(length(fourth_files)-),' . . . ']); for jj = :length(fifth_files)
six_file_name = fifth_files(jj).name;
six_path = [fifth_path, six_file_name, '/'];
six_files = dir([six_path, '*.jpg']);
% disp([' process the: ', six_file_name, '---', num2str(jj-), '/', num2str(length(fifth_files)-), ' . . . ']); for kk = :length(six_files)
seven_file_name = six_files(kk).name;
image = imread([six_path, seven_file_name]); imshow(image); [width, length, channel] = size(image);
% disp(sec_file_name);
% disp(third_file_name);
% disp(fourth_files_name);
% disp(fifth_file_name);
% disp(six_file_name);
% disp(seven_file_name);
resolution = width * length ; if (resolution > threshold)
imwrite(image, [savePath, seven_file_name]);
end end end end end end end
Error using subsindex
Function 'subsindex' is not defined for values of class 'struct'.
Error in pre_deal_additional_data (line 39)
for kk = 1:length(six_files)
----------------------------------------------------------------------
----------------------------------------------------------------------
fuck the error and the answer is :
clc; clear all; close all;
image_path = '/media/wangxiao/Elements/image_segment_backup/';
savePath = '/media/wangxiao/Seagate/wangxiao/additional_data/'; threshold_self = ; first_files = dir(image_path); for i = :size(first_files, )
sec_file_name = first_files(i).name;
sec_path = [image_path, sec_file_name, '/'];
sec_files = dir(sec_path);
disp(['process the: ', sec_file_name, '---', num2str(i-), '/', num2str(length(first_files)-),' waiting . . . ']); for j = : size(sec_files, )
third_file_name = sec_files(j).name;
third_path = [sec_path, third_file_name, '/'];
third_files = dir(third_path);
% disp([' process the: ', third_file_name, '---', num2str(j-), '/', num2str(length(sec_files)-),' . . . ']); for k = : size(third_files, )
fourth_files_name = third_files(k).name;
fourth_path = [third_path, fourth_files_name, '/'];
fourth_files = dir(fourth_path);
% disp([' process the: ', fourth_files_name, '---', num2str(k-), '/', num2str(length(third_files)-),' . . . ']); for ii = : size(fourth_files, )
fifth_file_name = fourth_files(ii).name;
fifth_path = [fourth_path, fifth_file_name, '/'];
fifth_files = dir(fifth_path);
% disp([' process the: ', fifth_file_name, '---', num2str(ii-), '/', num2str(length(fourth_files)-),' . . . ']); for jj = : size(fifth_files, )
six_file_name = fifth_files(jj).name;
six_path = [fifth_path, six_file_name, '/'];
six_files = dir([six_path, '*.jpg']);
% disp([' process the: ', six_file_name, '---', num2str(jj-), '/', num2str(length(fifth_files)-), ' . . . ']); for kk = : size(six_files, )
seven_file_name = six_files(kk).name;
image = imread([six_path, seven_file_name]); % imshow(image); [width, length, channel] = size(image); resolution_self = width * length ; if (resolution_self > threshold_self)
imwrite(image, [savePath, seven_file_name]);
end end end end end end end
Error using subsindex Function 'subsindex' is not defined for values of class 'struct'.的更多相关文章
- Mysql drop function xxxx ERROR 1305 (42000): FUNCTION (UDF) xxxx does not exist
mysql> drop function GetEmployeeInformationByID;ERROR 1305 (42000): FUNCTION (UDF) GetEmployeeInf ...
- JS function document.onclick(){}报错Syntax error on token "function", delete this token
JS function document.onclick(){}报错Syntax error on token "function", delete this token func ...
- Apache Error: Invalid command ‘Allow’, perhaps misspelled or defined by a module not included in the server configuration
在一个Window Server 2008R2系统上使用Apache架设了一个PHP的网站项目 在配置Apache的过程中出现了以下问题 根据上面的提示说是没有相应的权限,那就在虚拟主机里进行了配 ...
- Error Code: 1305. FUNCTION student.rand_string does not exist
1.错误描述 13:52:42 call new_procedure Error Code: 1305. FUNCTION student.rand_string does not exist 0.0 ...
- Error Code: 1630. FUNCTION rand.string does not exist
1.错误描述 13:50:13 call new_procedure Error Code: 1630. FUNCTION rand.string does not exist. Check the ...
- error: no matching function for call to 'std::exception:exception(const char[16])'
环境:codeblocks 语言:C++ 在执行:throw new exception("queue is empty.");时 遇到问题:error: no matching ...
- OpenCV 学习笔记 06 SIFT使用中出现版权问题error: (-213:The function/feature is not implemented)
1 错误原因 1.1 报错全部信息: cv2.error: OpenCV(4.0.1) D:\Build\OpenCV\opencv_contrib-4.0.1\modules\xfeatures2d ...
- 【Loadrunner】Error -26601: Decompression function 错误解决、27728报错解决方案
一. Error -26601: Decompression function 错误解决 Action2.c(30): Error -26601: Decompression function ...
- Error no matching function for call to 'std::exception::exception(const char [15])'
Error no matching function for call to 'std::exception::exception(const char [15])' Error 'logic_err ...
随机推荐
- SharePoint 跨域还原网站一则
博客地址:http://blog.csdn.net/foxdave 源端:执行PowerShell命令备份网站集 Backup-SPSite http://server_name/sites/site ...
- (转)phoneGap-Android开发环境搭建
(原)http://www.cnblogs.com/shawn-xie/archive/2012/08/15/2638480.html phoneGap-Android开发环境搭建 一.安装 在安 ...
- postfix 邮件备份方法
postfix 邮件备份方法: postfix的bcc(密送)功能可以根据条件,将所有经过postfix队列的邮件根据规则密送到指定的邮箱. postfix带有三个bcc参数: ①.always_bc ...
- hdu1166敌兵布阵_线段树单点更新
Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了.A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任 ...
- 微信 关闭手机微信内置浏览器的js
WeixinJSBridge.call('closeWindow');
- Unity3D ShaderLab 使用BlinnPhong高光类型
Unity3D shaderLab 使用BlinnPhong高光类型 上一篇我们实现了自定义高光类型,这一篇,我们说Blinn高光,它是另一种计算和估算高光更高效的方式,它是通过视线防线和光线方向,所 ...
- Unity3D ShaderLab压缩混合纹理贴图
Unity3D ShaderLab压缩混合纹理贴图 纹理可以用于存储大量的数据,我们可以把多个图像打包存储在单一的RGBA纹理上,然后通过着色器代码提取这些元素, 我们就可以使用每个图片的RGBA通道 ...
- PHP 上传图片和安全处理
上传图片 public function images() { $data = $_FILES['file']; switch($data['type']) { case 'image/jpeg': ...
- [图论]Dijkstra 算法小结
Dijkstra 算法小结 By Wine93 2013.11 1. Dijkstra 算法相关介绍 算法阐述:Dijkstra是解决单源最短路径的算法,它可以在O(n^2)内计算出源点(s)到图中 ...
- HTML-day-2-HTML常用标签
一.常用标签 超链接标签 href-----hyperlink reference _blank,是指在新窗口中打开. 作用:①做锚点的标签,<a name=””></a> ② ...