Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

graph plotting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wayne - 29 Mar 2005 08:40 GMT
i want to plot a line graph. The values that I obtain are the RGB value
of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when
generated the RGB values, there will b a column of values for me t
plot the line graph

thanks alot

Peteroid wrote:
> [B]What kind of 'plot' of the data do you want to do? A histogram ca
> be done
> using just text, other graphs require graphic elements. What kind o
> project
> are you doing? Many factors can change the answer to you
> question...
>
> What do you mean by 'column of values'? Do you wish to plot index vs
> value
> (sequence), frequency of values (histogram), progressive sum o
> values
> (tally). etc?
>
> [==Peteroid==


Peteroid - 29 Mar 2005 22:39 GMT
I'm really not sure exactly what you mean. RGB 'values' contain as many as 4
values (if you include alpha channel). Hence, an RGB value is 3 dimensional
in and of itself. Also, I'm not clear concerning what you mean by
'value(1,2,3,...)'. Do you mean position on the screen? If so, then this too
is multi-dimensional ala (x,y). Therefore from yuor description it sounds
like yuor graph needs to be 5-dimensional, which is of course very hard
'visualize', let alone represent on a 2-dimensional display.

What exactly do you mean by a 'line graph'? I don't want to assume anything
about how you use this term, since from my point of view, ALL graphs can be
drawn as a 'line-graph' (i.e., graphs drawn with lines). To me this is a
style, not a method type.

You know it might be helpful if you described exactly what you are trying to
accomplish (i.e., the 'bigger picture'). Is this for compressing graphic
files? Equalization? That kind of thing.

I think I know what you mean by 'column of values', but I'll ask to be sure.
Do you mean the column has positions (1st, 2nd, 3rd, etc.) and you want to
plot position vs value at that position in the column? That sounds ver much
like a histogram...

Also, what part of the problem do you need help with? The actually drawing
of the graph in VC++? There are no native 'graph methods' I know of, so
whenever I need to draw a graph I write the whole thing myself to custom fit
the project I'm doing. In my case, I manage to draw all graphs using the
Label class as a solid box I can put text in! Note that a thin solid box
without text is a line... :) There are graphic drawing functions in VC++
which you might want to look into, but they require some not-so-obvious
setup (like device contexts and handles).

Finally, I often just use text if the graph needs only to be histogram in
nature. Just use various lengths of asteriks strings to represent graph
extent at each value (the 'y' to the graph's 'x'), and draw these asteriks
strings anchored on the x-axis at its x-value with its length equal to its
y-value (the value's tally count for a histogram). Scaling is easy to make
it fit any size box on the screen you need, depending on how accurate your
graphs must be...

I know this isn't much help, but it is my train of thought on the subject at
hand... :)

[==Peteroid==]

> i want to plot a line graph. The values that I obtain are the RGB values
> of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when i
[quoted text clipped - 24 lines]
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.