Thread Subject: save color histogram as database

Subject: save color histogram as database

From: Suraj

Date: 23 Jan, 2012 14:27:10

Message: 1 of 5

How do I save data from color histogram of cam1 and save it as a database? And later how can i compare this data to another values received from cam2?

Subject: save color histogram as database

From: ImageAnalyst

Date: 23 Jan, 2012 22:03:29

Message: 2 of 5

On Jan 23, 6:27 am, "Suraj " <suraj.kv.b...@gmail.com> wrote:
> How do I save data from color histogram of cam1 and save it as a  database? And later how can i compare this data to another values received from cam2?

----------------------------------------------------------
What do you mean by database? Like Oracle, Access, or SAS or
something?
How about just saving it to a regular .mat file with the save()
function?

Subject: save color histogram as database

From: Suraj

Date: 24 Jan, 2012 01:56:10

Message: 3 of 5

Later, I need the histogram values to be retrieved and even compared with another set of values. Can this be done for .mat files? Would you please help me with the code?

Subject: save color histogram as database

From: ImageAnalyst

Date: 24 Jan, 2012 04:07:27

Message: 4 of 5

On Jan 23, 5:56 pm, "Suraj " <suraj.kv.b...@gmail.com> wrote:
> Later, I need the histogram values to be retrieved and even compared with another set of values. Can this be done for .mat files? Would you please help me with the code?

% Get the name of the file that the user wants to save.
startingFolder = userpath
defaultFileName = fullfile(startingFolder, '*.*');
[baseFileName, folder] = uiputfile(defaultFileName, 'Specify a file');
if baseFileName == 0
% User clicked the Cancel button.
return;
end
fullMatFileName= fullfile(folder, baseFileName)

% Get the histogram of the gray scale image.
[pixelCounts grayLevels] = imhist(grayImage);

% Save the arrays.
save(fullMatFileName, 'pixelCounts', 'grayLevels');

Subject: save color histogram as database

From: Suraj

Date: 24 Jan, 2012 10:40:09

Message: 5 of 5

Another thing is 'How can I extract a video(image) from a object tracking algorithm'? When object tracking (using Gaussian filter with computer vision toolbox) algo is started, i need to extract the video(image) within the rectangle and I need to apply histogram(only hue histogram). Now the problem is how can the extract the video of object which is tracked by rectangle and extract it and then apply hue histogram?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
image processing Suraj 24 Jan, 2012 05:44:11
color histogram Suraj 23 Jan, 2012 09:29:11
rssFeed for this Thread

Contact us at files@mathworks.com