convert pattern image to sinusoidal wave

조회 수: 7 (최근 30일)
Rajbir Singh
Rajbir Singh 2019년 11월 1일
답변: Varun Meeniga 2020년 2월 27일
Untitled.jpg
What algorithm should be applied on above image to get that sinusoidal wave corresponding to that image?

답변 (2개)

darova
darova 2019년 11월 1일
Convert image (rgb2gray) and sum rows
  댓글 수: 2
Rajbir Singh
Rajbir Singh 2019년 11월 2일
it doesn't work
darova
darova 2019년 11월 2일
Can you show what have you tried? And why it doesn't work?

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


Varun Meeniga
Varun Meeniga 2020년 2월 27일
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);

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by