convert a pixel intensity of gray-scale image to 1D type Signal

조회 수: 4 (최근 30일)
Sina Zinatlou
Sina Zinatlou 2020년 12월 15일
댓글: Sina Zinatlou 2020년 12월 28일
Hi
I'm going to use a 1D wavelet for controlling the surface quality according to the taken images of the surface of the product. then I try to find the pixel intensity along the scanned line. but the input for the 1D wavelet should be the 1D signal.
I used "improfile" function to find a pixel intensity on a specific scanned line. then I have an intensity-distance profile.
now my question is: how can I convert this profile to a 1D signal inorder to use in wavelet?
Thank you

채택된 답변

Rohit Pappu
Rohit Pappu 2020년 12월 28일
The algorithm for converting RGB values to Intensity values is
This algorithm converts a n-by-1-by-3 vector into a n-by-1 vector
Additional Information about the color space conversion algorithm can be found here
  댓글 수: 1
Sina Zinatlou
Sina Zinatlou 2020년 12월 28일
Dear Rohit
Thanks for your reply
Are you suggesting to use this method for getting intensity instead of my method?
Because I already have the intensity results and my problem is converting the pixel intensity to a 1D signal.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Wavelet Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by