matlab-cvst

How to add HOG features into matrix (matlab)

有些话、适合烂在心里 提交于 2019-12-11 03:17:32
问题 After extracting HOG features of folder of images, I want to add all this results in one matrix. How I can do this? this is my code in matlab: training_female = 'E:\Training Set\Female Images'; % read all images with specified extention, its jpg in our case filenames = dir(fullfile(training_female, '*.jpg')); % count total number of photos present in that folder total_images = numel(filenames); for n = 1:total_images % Specify images names with full path and extension full_name= fullfile

How to Convert Kinect rgb and depth images to Real world coordinate xyz?

孤街浪徒 提交于 2019-12-11 02:39:49
问题 I am using kinect recently to find distance of some markers, so i'm stuck in converting kinect rgb and depth images that are in pixel, to real world coordinate xyz that a want in meters. 回答1: You can use the depthToPointCloud function in the Computer Vision System Toolbox for MATLAB. 回答2: Please, note that in Kinect SDK 1.8 (Kinect 1), it's not possible to convert from RGB image space to world space: only from depth image space to world space. Other possible conversions are: Depth -> RGB

error in Undefined function 'insertObjectAnnotation' in matlab

南楼画角 提交于 2019-12-10 17:08:26
问题 i try to apply code for face detection and tracking in matlab but unfortunately this error prompted up i use matlab R2012a this is the code i tried faceDetector = vision.CascadeObjectDetector(); videoFileReader = vision.VideoFileReader('visionface.avi'); videoFrame = step(videoFileReader); bbox = step(faceDetector, videoFrame); videoOut = insertObjectAnnotation(videoFrame,'rectangle',bbox,'Face'); and this is the error : Undefined function 'insertObjectAnnotation' for input arguments of type

Matlab SURF points to pixel coordinates

…衆ロ難τιáo~ 提交于 2019-12-10 16:59:15
问题 I want to extract (x,y) pixel coordinates out of the SURF points returned, as an example in the example provided here using Matlab. It is clear that using 'ptsIn(1).Location' I can return the (x,y) coordinates of the point. But the points retuned included some decimal points as well, as an example (102.9268, 51.7285). Is there any way to convert this to pixel positions in the image plane, or just averaging these values will give the pixel positions? Thank you. 回答1: To understand it further I

How to match an object within an image to other images using SURF features (in MATLAB)?

你离开我真会死。 提交于 2019-12-08 06:32:12
问题 my problem is how to match one image to a set of images and to display the matched images. I am using SURF feature for feature extraction. 回答1: If you have the Computer Vision System Toolbox, take a look at the following examples: Object Detection In A Cluttered Scene Using Point Feature Matching Image Search using Point Features 来源: https://stackoverflow.com/questions/22388481/how-to-match-an-object-within-an-image-to-other-images-using-surf-features-in-m

How to calculate the number of lines of text in an image in MATLAB

ぃ、小莉子 提交于 2019-12-08 06:11:19
问题 I have some images which have single lines or multiple lines of text. I want to calculate the number of lines. Like in a this reference, there is 5 lines. How do I do this in MATLAB? 回答1: I'm assuming you have the image processing toolbox installed, or this won't work. In addition, this assumes that each line of text has sufficient space from the other lines. You can approach this with morphology. First, take the image and invert it so that it's white text on black background. Once you do

Identifying a skin disease using image processing

▼魔方 西西 提交于 2019-12-07 14:11:47
问题 I currently have 2 seperate data sets that belong to 2 different skin diseases. I have drawn an abstract image differentiating the 2 diseases on MS Paint. Disease 1 tends to be rounder in shape than Disease 2 and there is a texture difference as well. Using texture filters and segmentation functions on Matlab, I am able to locate the disease region (and draw a border around it), for both Disease 1 and 2 . My question is how can I differentiate between the 2 diseases? Are there functions I can

CV: Difference between MATLAB and OpenCV camera calibration techniques

依然范特西╮ 提交于 2019-12-07 12:22:45
问题 I calibrated a camera with checkerboard pattern using OpenCV and MATLAB. I got .489 and . 187 for Mean Re-projection errors in OpenCV and MATLAB respectively. From the looks of it, MATLAB is more precise. But my adviser feels both MATLAB and OpenCV use the same BOUGET's algorithm and should report same error (or close). Is it so ? Can someone explain the difference b/w MATLAB and OpenCV camera calibration methods ? Thanks! 回答1: Your adviser is correct in that both MATLAB and OpenCV use

How to calculate the number of lines of text in an image in MATLAB

大憨熊 提交于 2019-12-06 16:33:56
I have some images which have single lines or multiple lines of text. I want to calculate the number of lines. Like in a this reference, there is 5 lines. How do I do this in MATLAB? I'm assuming you have the image processing toolbox installed, or this won't work. In addition, this assumes that each line of text has sufficient space from the other lines. You can approach this with morphology. First, take the image and invert it so that it's white text on black background. Once you do this, use a horizontal line structure element that is the size of the width of the image, and use morphological

generate a point cloud from a given depth image-matlab Computer Vision System Toolbox

限于喜欢 提交于 2019-12-06 04:34:17
I am a beginner in matlab, I have purchased Computer Vision System Toolbox. I have being given 400 of depth images (.PNG images). I would like to create a point cloud for each image. I looked at the documentation of Computer Vision System Toolbox, and there is an example of converting depth image to point cloud ( http://uk.mathworks.com/help/vision/ref/depthtopointcloud.html ): [xyzPoints,flippedDepthImage] = depthToPointCloud(depthImage,depthDevice) depthDevice = imaq.VideoDevice('kinect',2) but the thing that I don't understand is that it requires Kinect camera and connection . I am not