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 ...
随机推荐
- Julia中文教程资源.txt
Julia中文教程资源.txt 2016年3月28日 05:18:32 codegay 本文更新在这里: https://github.com/FGFW/julia-science-and-techn ...
- Android布局— — —线性布局
以水平或垂直的方式显示界面中的控件 线性布局 语法格式: <LinearLayout xmlns:android="http://schemas.android.com/apk/res ...
- How to Avoid OOM in Android
1.use java reference(strong soft weak phantom) 2.use android:largeHeap="true" above or VMR ...
- servlet容器处理请求过程
下图是关于tomcat服务器接收客户请求并作出响应的图例. tomcat不仅仅只是一个servlet容器,也是一个web服务器,servlet容器在web服务器之内或者说servlet容器托管于web ...
- 嵌入式 -- WINKHUB 边信道攻击 (NAND Glitch)
0x00 前言 随着物联网IOT的飞速发展,各类嵌入式设备, 路由器安全研究也越来越火. 但因为跟以往纯软件安全研究的要求不同, 这类研究往往需要结合相应的硬件知识. 很多朋友困惑如何开始, 甚至卡在 ...
- Ubuntu封装制作ISO镜像
首先下载Remastersys的Deb软件包 链接:http://pan.baidu.com/s/1i3tYPKT 密码: 使用命令强制安装 dpkg --force-all -i remasters ...
- HDU 1080
http://acm.hdu.edu.cn/showproblem.php?pid=1080 二维最长公共子序列 #include <iostream> #include <cstd ...
- oracle将多条数据合并成一条
select t.col1,t.col2 ,wmsys.wm_concat(t.col3||' ') AS col3 , wmsys.wm_concat(t.col4||'') as col4,w ...
- 转--->svn的使用
在Windows环境中,我们一般使用TortoiseSVN来搭建svn环境.在Mac环境下,由于Mac自带了svn的服务器端和客户端功能,所以我们可以在不装任何第三方软件的前提下使用svn功能,不过还 ...
- LeetCode Subsets II (DFS)
题意: 给一个集合,有n个可能相同的元素,求出所有的子集(包括空集,但是不能重复). 思路: 看这个就差不多了.LEETCODE SUBSETS (DFS) class Solution { publ ...