convert pattern image to sinusoidal wave
Show older comments

What algorithm should be applied on above image to get that sinusoidal wave corresponding to that image?
Answers (2)
darova
on 1 Nov 2019
0 votes
Convert image (rgb2gray) and sum rows
2 Comments
Rajbir Singh
on 2 Nov 2019
darova
on 2 Nov 2019
Can you show what have you tried? And why it doesn't work?
Varun Meeniga
on 27 Feb 2020
0 votes
image=imread('sine_image.jpg');
si(1,:)=image(1,:); %stores int8 value of pixel along the horizontal direction
si=double(si); %double for easy calculations
fin_si=(si-128)/128; % changes 0 to 255 values to -128 to 127 further to -1 to 1
plot(fin_si);
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!