FAQ Database Discussion Community

## How to separate the patches in the image?

image,matlab,image-processing,computer-vision,vision
I want to initialize the dictionary of this image. The image is the same as this one: image source The size of the grey image is 320*512 double. I want to separate the 40 brain image patches in this grey image. I have two questions 1) how to get the...

## How to convert a RGB image to a two dimensional image in Matlab

image,matlab,image-processing,computer-vision,vision
I have a RGB image called imrgb, the size of which is 320*512*3. I want to know how to convert it to a two dimensional image? I saw some colorful images, but they are still two dimensional instead of three dimensional. Can anyone tell me how to convert it to...

## Saving bounding box coordinates for each frame in a video

machine-learning,computer-vision,vision
I have a video from a camera with humans on the scene. I need to go through each frame of that video and manually save the coordinates (go through each frame and draw the square around each human) of the bounding box of the detected humans on the scene and...

## How to match the resulting “map” with the given “color_map”?

image,matlab,image-processing,computer-vision,vision
I have a RGB image called imrgb, the size of which is 320*512*3 double.And I also have the color_map = 64*3 double. I use the following code: [X, map] = rgb2ind(imrgb, 256) the resulting X= 320*512 uint8, and the resulting map = 65*3 double. The resulting "map" is totally different...

## Implementation of Absolute Differences Stereo Matching Algorithm

matlab,matching,vision,correspondence
Good day! I am trying to learn how to manually implement stereo matching algorithms. I'm basically starting with the most basic of them all - Absolute Difference. I found some slides online that describe how to do it. Basically, from what I understand, I should calculate the difference between the...

## Matlab Image Histogram Analysis: how do I test for an underlying bimodal distribution?

matlab,image-processing,histogram,distribution,vision
I am working with image processing in MATLAB. I have two different images whose histogram plots are as shown below. Image 1: and Image 2: I have multiple images like those and the only distinguishing(separating) features is that some have single peak and others have two peaks. In other words...

## how to translate and scale the image?

image,matlab,image-processing,computer-vision,vision
My image looks like this: The given imrgb = 320*512*3 double; color_map = 64*3 double; after using [X, map] = rgb2ind(imrgb, color_map); I get X = 320*512 uint8. The image is too big for the further processing. My question is how to translate and scale the image to a standard...