i want to capture an image through fish-eye camera in real time and use that image for processing.can anybody suggest me how to do it
이전 댓글 표시
I used this code but it is using a webcam as an input for the video. I want to use a fish-eye camera instead. Please help.
% if(~isdeployed)
% cd(fileparts(which(mfilename)));
% end
% clc;
% Clear command window.
% clear;
% close all;
% Close all figure windows except those created by
% imtool close all;
% Close all figure windows created by imtool.
% workspace;
% Make sure the workspace panel is showing.
% fontSize = 36;
% % Start up the video.
% vid = videoinput('winvideo', 1, 'RGB24_640x480');
% vid.FramesPerTrigger = 1;
% preview(vid);
% start(vid);
% Get image and display it.
% rgbImage = getdata(vid);
% subplot(1,2, 1);
% imshow(rgbImage);
% title('Initial Image', 'FontSize', fontSize);
% set(gcf, 'Position', get(0,'Screensize'));
% Save this image to disk.
% fullImageFileName = fullfile( 'C:\Users\div\Desktop\myfirstimage.jpg');
% imwrite(rgbImage,fullImageFileName);
% Read it back in to check it.
% recalledImage = imread(fullImageFileName);
% subplot(1,2, 2);
% imshow(recalledImage);
% title('Recalled Image', 'FontSize', fontSize);
답변 (1개)
Image Analyst
2013년 5월 27일
0 개 추천
Other than the video mode name used in videoinput() might be different for a different camera model, why do you think the code should be any different than it is for a webcam or any other digital camera?
댓글 수: 5
divya
2013년 5월 28일
Image Analyst
2013년 5월 28일
You will see a list of video modes that that camera uses when you run imaqtool. You can turn any camera into a "fish eye" camera if you can change to a wide angle lens on it (a lens with a very very short focal length). It's the lens that determines "fish eye", not the camera.
divya
2013년 5월 28일
divya
2013년 5월 28일
카테고리
도움말 센터 및 File Exchange에서 Matrox Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!