Hello, I would like to get some suggestions about how to modify the attached code. Essentially, it is a part of a larger code aimed at segmenting and tracking focal adhesions. Since the function avifile has been replaced by writeVideo, the code does not work anymore. Could someone suggest how to modify it? I am currently using MATLAB_R2016b on a MacBook Pro Retina (running 10.12). Thank you in advance, Antonio

답변 (2개)

OCDER
OCDER 2017년 9월 18일
편집: OCDER 2017년 9월 18일

0 개 추천

function [ output_args ] = images2Avi(searchstring, outfilename, fps, quality, width)
%IMAGES2AVI Summary of this function goes here
% quality 1..100
dirlist = dir(searchstring);
files = {dirlist.name};
inpath = dirlist.folder;
filename = fullfile(inpath, outfilename);
vidobj = VideoWriter(filename, 'Uncompressed AVI');
vidobj.FrameRate = fps;
vidobj.Quality = quality;
open(vidobj)
for k = 1:length(files)
im = imread(fullfile(inpath, files{k}));
%Insert other image-processing codes here
writeVideo(vidobj, imresize(im, [NaN width]));
end
close(vidobj)
Image Analyst
Image Analyst 2017년 9월 18일

0 개 추천

댓글 수: 1

Antonio Sechi
Antonio Sechi 2017년 9월 19일
Hi Image Analyst, Thank you for your help. I am a cell biologist, hence it will take a while for me to understand the attached examples. I wanted to tell you that my code generates two AVI file from two types of files (see attached examples). Essentially, one AVI file is for the representation of the tracked objects as contours (greyscale). The other is for the RGB representation of the objects as regions. I do not understand how your code above can generate the two AVIs. Probably it is not easy for your to understand as you do not have the entire code. I suggest to take a look at the attached paper to see what the code does. Thanks again for your help. Antonio

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

질문:

2017년 9월 18일

댓글:

2017년 9월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by