adding pixels of each binary image in time series

Technical Source
1 min readFeb 19, 2022

--

I have time series of classified binary images with same number of rows and columns, I would like to add the values for each cell (eg. (1,1)) of every image. then divide addition for a cell with number of images to get percentage.

idea is to get the percentage for each cell in this time series 1.tif, 2.tif,……10.tif

then plot this percentage for each cell on a 3D graph with varying colors.

hints or suggestions will be helpful.

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Inside the loop over images,

if k == 1
% It's the first image. Create the sum image.
sumImage = double(binaryImage);
else
% It's the second or later. Add it.
sumImage = sumImage + double(binaryImage);
end

Then after the loop divide sumImage by the number of images to get the percentage image.

percentageImage = 100 * sumImage / numberOfImages;
imshow(percentageImage, []); % Display scaled to 0-255 with the [] option.

SEE COMPLETE ANSWER CLICK THE LINK

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet

Write a response