필터 지우기
필터 지우기

How do I get the matrix of gray levels from the "from Video Device" in Simulink

조회 수: 1 (최근 30일)
gilad ash
gilad ash 2022년 6월 13일
댓글: gilad ash 2022년 6월 14일
Hi.
I want to open the camera that will work on grayscale with the help of the "from Video Device" in Simulink and extract from each frame its I matrix.
Thanks
  댓글 수: 2
Image Analyst
Image Analyst 2022년 6월 13일
What do you have so far? Do you have the camera already? If so, what king? Do you have the Image Acquistion Toolbox (I'm not even sure if it's needed or works with Simulink so call Mathworks and ask them)? Are you able to pull an image in from the camera to a variable in your code or Simulink block yet?
gilad ash
gilad ash 2022년 6월 14일
I have the camera, the kind is "web camera Full HD 1080P" and I can open it, I dont no how to extract in Simulink the I matrix, the Pixel matrix.

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

답변 (1개)

Benjamin Thompson
Benjamin Thompson 2022년 6월 13일
Double click on the block and change the output color space option to "grayscale" if you can. Or, the Computer Vision Toolbox offers a Color Space Conversion block. Or, use a MATLAB function block to wrap the rgb2gray in Simulink, this is part of basic MATLAB. Or just do it your self, since intensity of RGB is just sqrt(R^2 + G^2 + B^2).
  댓글 수: 1
gilad ash
gilad ash 2022년 6월 14일
Sorry, my question was not understood.
I have a camera and I know how to open it to do a grayscale photo, my question is how do I extract in simulink the matrix I, the pixel matrix of the image
thanks

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by