Function with multiple inputs
显示 更早的评论
Hello everyone
I have a function with two inputs
function [output_image]=multiple(input_1,input_2)
assume
input_1=imread('image from input folder_1')
input_2=imread('image from input folder_2 ')
output_image=input_1+input_2 % assume this as preprocessing stage
%i need to stire all the images after prerocessig in folder
%i have 90 images in folder_1 and 90 images in folder_2 and this images
%should be read in sequence
%example like folder_1 : 1st image
% folder_2=first image
end
please help me to write a loop
3 个评论
Walter Roberson
2021-9-12
Do the images in the folders have the same names? Or do they have related names so that you can calculate the name in the second folder given only the name in the first folder?
Are you restricting this to only one file extension for the inputs?
Poreddy ajaykumar reddy
2021-9-12
Walter Roberson
2021-9-12
Okay, so given the name in one folder, how do you know which name in the other folder is the corresponding image ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Blocked Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!