i want the program to find largest value among the image.

please help me.

7 Comments

Which? 2014 is the largest number. Perhaps you are looking for the 4, the largest temperature. Perhaps you are looking for the 7, the highest wind speed. Perhaps you are looking for the pixel with the highest intensity. Perhaps you are looking for the pixel that has the single largest R, G, or B component. We don't know what you mean.
in this excel file, in row2 i need to find the max. value and also i need the 1st coloumn of either side value.
I'm confused now. is it an excel file or is it a picture? if excel file it is trivial.
dude, from the image i have tried to keep in excel file..... now listen carefully... in the coloumn 2, i need to find the maximum value... for that maximum value either side of first coloumn value also should be get at output..
OK dude, now it seems clear that you already have the numbers and dates in a workbook and you're not dealing with an image. And listening carefully just does not answer all our questions and remove all ambiguities. When you say "either side of first coloumn value", I'm not sure what you mean. "Either" can mean "one side or the other side" (like it means "one" ) but "either" can also mean "both" so that on either side would mean on both sides. So when you say on "either side of the first coloumn" do you mean column 0 (which does not exist) and/or column 2 (which is just the max value which you already have)? Or do you simply want the entire row (all columns) in which the max of column 2 occurs?
Second question is, what do you want if the max of column 2 occurs in more than one row? Do you want the matrix of all rows where that happens?
"either side" could also mean that they want the row before and the row after. Or if they had been looking for anything other than the maximum, it could mean that they wanted to also know the row which had the closest value in column 2 that did not exceed the target value and also the row which had the closest value in column 2 that exceeded the target value.
nani, note that there are cultural reasons why your use of "dude" could be considered disrespectful. It is recommended that you do not use "dude" in a professional context.

Sign in to comment.

Answers (1)

Is it an image, or can you get the numbers from the HTML with urlread() or webread()? If it's an image you'll have to use OCR, which is in the Computer Vision System Toolbox. http://www.mathworks.com/help/vision/ref/ocr.html#bt548t1-2_1

2 Comments

We don't know if the task has anything to do with OCR. Might be a problem of finding max(TheImage(:)) . User didn't say.
nani, I see you flagged your own question as being unclear. We agree. I did ask some questions above to try to clear up the ambiguities but you did not answer. Are you still needing to solve this issue or not? If so, answer my questions and clear up the problem statement enough so that we can help you.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

No tags entered yet.

Asked:

on 15 May 2015

Commented:

on 23 May 2015

Community Treasure Hunt

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

Start Hunting!