representation of many curves

4 ビュー (過去 30 日間)
cyrine tijani
cyrine tijani 2021 年 4 月 17 日
編集済み: KALYAN ACHARJYA 2021 年 4 月 18 日
hi i have 25 images i want to select 6 pixels and follow each point during the 25 images then represent 6 curves in one axis i hope that u get me
any help ?
  3 件のコメント
cyrine tijani
cyrine tijani 2021 年 4 月 17 日
that code gives me 25 curves while i need 6 curves of 6 pixels in 25 images
Walter Roberson
Walter Roberson 2021 年 4 月 17 日
It is the same requirement, and the same discussion. We are working through it with the person there.

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 4 月 18 日
編集済み: KALYAN ACHARJYA 2021 年 4 月 18 日
Snippet:
% Images Folder Directory
% Call the images one by one, there are multiple simmilar question, please check
% Load any one image and get the size
imgae_data=rgb2gray(imread(image_file)); %Considering Gray Image
[r,c]=size(image_data);
%To select six pixels can be done in two ways
%One approach using randi function
x=randi([1,r],[1,6]);
y=randi([1,c],[1,6]);
% 2nd Approach using pixelinfo
% Now call the 25 images one by one
pix_data=cell(25,i);
for i=1:25
%Read 1st images
% Get the 6 pixels values using x,y
image_data=image1; %when i=1
% Get the pixel form the image at x,y
pix_data{i,1}= % array with 6 pixels value
end
Once done, pix_data is a cell array with 25 elements and individual cell elements having 6 pixels value
pix_data=cell2mat(pix_data);
See pix_data details
>> whos pix_data
Name Size Bytes Class Attributes
pix_data 25x6 1200 double
Next plot the pix_data with individual column wise, you will get 6 curves.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by