i want the program to find largest value among the image.
Show older comments
please help me.

7 Comments
Walter Roberson
on 15 May 2015
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.
nani kalyan
on 15 May 2015
Joseph Cheng
on 15 May 2015
I'm confused now. is it an excel file or is it a picture? if excel file it is trivial.
nani kalyan
on 15 May 2015
Edited: nani kalyan
on 15 May 2015
Image Analyst
on 16 May 2015
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?
Walter Roberson
on 16 May 2015
"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.
Walter Roberson
on 16 May 2015
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.
Answers (1)
Image Analyst
on 15 May 2015
0 votes
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
Walter Roberson
on 15 May 2015
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.
Image Analyst
on 23 May 2015
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.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!