HNHacker News
TopNewBestAskShowJobs

haffla

50 karma · joined November 12, 2014

[ my public key: https://keybase.io/jak_p; my proof: https://keybase.io/jak_p/sigs/SDxbo_t5Xz8vuWwvD6IrpSQnnKzNawKIBmJZYJjFdK8 ]
submissionscomments
haffla··on Image Processing 101
So OK you can use cv2.COLOR_RGB2GRAY to get a grayscale image. But what does that teach you? In my image processing 101 course a couple of years ago we actually didn't use any libraries except for reading images and showing them (written by the teacher). Just Java. A picture would be a 2 dimensional array. The pixel is represented by an integer. So you just need a nested for loop and you can manipulate every pixel yourself, thus learning what really happens under the hood, how filters work.
haffla··on JEP 286: Local-Variable Type Inference
You fail to see that type inference is optional. So yes for readability's sake, in your first example I wouldn't omit the "int", but in simpler cases you CAN omit if you want. And that's just nice, end of story.
haffla··on Yelp Fired a Single Mother Today: Me
Wow. I did not know that. This is actually something that would keep me from relocating to the U.S.
haffla··on U.S. Can't Make Weapons Fast Enough to Meet Demand
Honestly I'd like to verify these numbers because I can't believe them. 5bn $ in 2 days? That can't be!!!
← PreviousPage 2 of 2