![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/472102/image.png)
convert a pixel intensity of gray-scale image to 1D type Signal
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sina Zinatlou
el 15 de Dic. de 2020
Comentada: Sina Zinatlou
el 28 de Dic. de 2020
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
0 comentarios
Respuesta aceptada
Rohit Pappu
el 28 de Dic. de 2020
The algorithm for converting RGB values to Intensity values is
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/472102/image.png)
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Continuous Wavelet Transforms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!