@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12



Comments:

<0> and doing a comparison
<1> streaming video data - so it has to be pretty efficient ...
<2> Apocal` you could also use pseudocoloring to preserve every level of gray
<0> rdragon: how so?
<0> i'm not too familiar with pseudocoloring
<0> i only know of it
<1> hmm probably no point trying to use anyone else's ....... guess i should just do it from scrach and stop being lazy :p
<2> do you know what a pseudocolored image looks like?
<0> Solamente: it's industry specific
<0> if you're working on wallstreet, graphics mean nothing
<1> but it's quite fun, and it's surprising how often graphics knowledge comes in handy
<0> unless you mean for "knowledge sake"
<1> even on wallstreat
<1> street*
<2> it'll let you preserve all 65K levels of gray - instead of smashing them into 256 levels of gray, it uses colors to give you all 65K levels



<3> Solamente I liked the "graphics gems" books for general knowledge
<2> pseudocoloring: http://www.catenarysystems.com/howto/pseudo.jpg
<0> that's perfect
<2> I bet your 'professional application' does it
<0> actually, i'm gonna take a stab at that
<0> pseudocoloring
<0> hmmph
<0> thanks rdragon
<1> could be fun .... fairly straightforward actually...
<2> it shouldn't be hard... for a simple implementation you won't even have to change the source value, just interpret it as 565 or 555 16-bit pixel
<0> yeah, that's what i figured
<0> wow, if this works i'm gonna be pretty happy
<0> it seems logic enough to work
<0> s/logic/logical
<2> although if you equalize the source image that would probably give a better result
<0> equalize the source image? how so?
<2> histogram equalization... in case the source is 'mostly dark' or 'mostly light'... it corrects the contrast to cover the whole range
<2> why are you doing this yourself and not using existing software?
<1> exactly what I was wondering???
<2> i mean, you can spend months just getting introduced to image processing techniques
<1> lol yea
<0> rdragon: oddly enough, because this is my new emploment
<0> employment too
<0> wow, i'm gonna give up in a few seconds
<2> heh
<1> lol
<0> i enjoy it though
<2> how long have you had the job?
<0> two weeks
<0> not long at all
<2> well then of course you like it ;)
<0> i know what you mean... but i have high hopes for this job
<2> nod
<0> you probably know exactly what i mean when it comes to new employment
<0> i'm not in the cynical mood
<1> honeymoon period :p
<0> anyway, i'm going home ... take care guys and thanks for the help
<1> nn apocal
<2> seeya
<1> and on that note, ... i'm bored...
<2> i'm off to get my mail and make some dinner
<1> what do you all think of boost? it good?
<0> try crack, it's better
<0> };
<1> uhh
<1> boost as in the libs which supplement stl ...
<3> khurtiz anyone who's serious about C++ should know about it
<1> true ... i take that to mean that it's virtually indispensible for any serious app....
<3> ot
<3> it's difficult to do without shared_ptr<> yeah
<1> what's that, a reference-counted ptr??
<1> ok yeah
<3> you brought up boost, I presumed you had the webpage and docs
<1> i spent half an hour looking at it earlier this week.....
<1> and yes I did just look up shared_ptr :p hehe
<1> is _m_ still active around here these days?
<3> sometimes why? he lives in Germany, iirc
<3> so it's 2AM or something there
<4> ok, I have a simple program that compliles fine in VS2005, but when I try to do anything with it in g++ (my instrustor says It has to work with this) i get an error with a function I am using; transform(s.begin(), s.end(), s.begin(), tolower);
<5> I like your instructor.
<5> Without knowing the error, though, we're going to have a hard time.



<4> test.cpp: In function `int main()':
<4> test.cpp:35: error: no matching function for call to `transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
<5> Well, there you go then, it can't find the transform template.
<4> what does that Mean?
<5> Got the right includes?
<5> Maybe you shoudl post your code at the website in the topic.
<4> http://www.noidea128.org/sourcefiles/15886.html
<4> is my code
<1> given that struct and cl*** are virtually identical, is there ever any reason to use one or the other except to save yourself some typing ??
<6> <aprilrose> why do all the freaking hippies get trusts
<1> um surely there's a better way to do this than with endless if statements? have you considered using a std::map?
<1> std::multimap, i meant
<7> hi
<4> this is my very first c++ program, and I have no idea how to do that - yet.
<1> hi knight_
<1> fair enough
<7> hi, khurtiz
<4> anyone know why that transform function is giving me problems when compiling in g++?
<8> I can't remember what I did for my first program that wasn't "hello world"
<9> aAron: you don't need to put a ';' after if () {}
<9> that is only necessary after struct/cl*** definitions.
<8> I think it was something with triangles in QBasic, but got frustrated because I didn't know what the F a radian was
<7> who care?
<8> I almost cares, but not quite
<10> your program or your compiler
<9> program
<10> how do you mean?
<9> exactly as I say it :)
<11> he's writing a c++ lexer with spirit, i think
<10> ohhhhhhhhhhhhhhhhhh
<4> no ideas anyone, why i would get that error in g++ i posted above in my code, http://www.noidea128.org/sourcefiles/15886.html
<10> this paste site is yucky
<10> what's the error
<4> test.cpp: In function `int main()':
<1> i'm confused with it, works fine for me here in vs2k5
<4> test.cpp:35: error: no matching function for call to `transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
<12> is tolower in <cctype>?
<4> works fine for me too in VS2k5
<10> ah, yes
<10> it's because there's two tolowers
<1> nod
<10> and your compiler doesn't know which one you mean
<10> wrap it in a function and you should be sorted
<4> do what?
<4> by the way, i get the same error when i include <cctype>
<10> unsigned char chrLower(unsigned char c) {return tolower(c);}
<10> now call transform with chrLower
<11> i'm curious how ctype.h gets included by default from the stl headers (even after removing the C headers in stdafx.h)
<11> (in 2005)
<12> transform(month.begin(), month.end(), month.begin(), std::tolower); would that work?
<10> nono
<10> there's an std::tolower that takes a locale too
<10> and one that doesn't, so which one do you mean when you just say std::tolower? compiler says dunno
<11> iostream indirectly includes ctype.h in dinkumware, interesting
<10> ya
<10> (this issue bit me in the bum before)
<13> on g++, here i get this to work: std::transform(host.begin(), host.end(), host.begin(), tolower);
<4> Cowmoo: I added unsigned char chrLower(unsigned char c) {return tolower(c);} in and then did chrLower(transform(month.begin(), month.end(), month.begin(), tolower));
<4> is that what you meant?
<4> cuz that dont work
<13> aAron, have you included ctypes.h?
<9> <cctypes>
<9> not ctypes.h
<10> no
<4> yeah, i got #include <cctype>
<4> now
<9> um, no s
<13> Run, ya
<10> chrLower in place of tolower]
<10> in std::transform
<10> kdinnertime
<13> and <algorithm>
<9> chrLower isn't standard C++


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

Suji pula
#gentoo
dualscript.cjb.net
#php
bag pula pizda
#MissKitten
ADI-PD 695
#c++
#AllNiteCafe
caiwhiqk



Home  |  disclaimer  |  contact  |  submit quotes