/srv/irclogs.ubuntu.com/2012/06/26/#ubuntu-us-pa.txt

SamuraiAlbaGood bacon to all!00:59
InHisNameSamuraiAlba: does chocolate coated bacon chip cookies sound enticing to you?01:37
plurworldincwasn't that on Epic Meal Time, last month01:39
SamuraiAlbaOM NOM NOM!01:41
SamuraiAlbaPulling a good guy greg this weekend01:41
SamuraiAlbaGF dumps me, her computers go nuts01:41
SamuraiAlbaI'm going up to fix them for free01:41
SamuraiAlbaand this is AFTER I'm rerunning the entire LAN at work...01:42
SamuraiAlbaanyway.. sleepytime... dreams of cookies :)01:42
plurworldincsweet dreams,01:43
InHisNameLet's see, now.  GF dumps you, THEN you choose to fix big computer problem of hers.  Stay that nice guy.  That could make a reputation that could attract more attention.01:54
plurworldincmaybe, but on the other!!!!  the flip side works faster01:55
JonathanDMorning.09:08
rmg51Morning09:35
waltman*yawn*09:40
SamuraiAlbaBack to last night...11:05
SamuraiAlbaYeah, I'll stay the nice guy :)11:06
JonathanDwootoff btw.11:06
SamuraiAlbaTurns out after running SFC /scannow, 3 of her PCs say they cant repir some system files...11:06
SamuraiAlba*Repair11:06
SamuraiAlbaso.... I have to reinstall WHILE keeping her apps and data...11:06
SamuraiAlbano biggie11:06
InHisNameEnjoy being busy fixing drive or saving files to go elsewhere.12:16
InHisNamemorning12:16
JonathanDi want this woot12:18
* JonathanD needs to get to work quick!12:18
InHisNameJonathanD wants a 32" tv ?    Not so good for a monitor for computer though.12:24
JonathanDfor fosscon12:29
InHisNameJonathanD: should check out the 'sellout woot'   they have 32" 720p HDTV for only $99 refurb.  Way better12:47
InHisName'n the reg woot for $20912:48
JonathanDInHisName: it's a 22 inch12:48
JonathanDnot 3212:48
JonathanD22 is too small.12:48
InHisNameOh, missed that 3 for 2 digit12:49
JonathanDWell12:49
JonathanDFosscon is getting at least one TV.12:49
JonathanDwoot is not working very well12:52
JonathanDfosscon might not be getting at least one TV12:52
JonathanDserver error.12:53
InHisNameWell y not a 22" in liu of anything else ?12:55
InHisNameOr...... how about just borrow for the period from someone who can spare it out?12:56
MutantTurkeyanyone have time to help poor old turkey?13:18
MutantTurkeyi need some programming advice13:18
=== MutantTurkey is now known as argv_turk
InHisNameargv_turk: y the name change?   YOU? need programming advice ?13:36
argv_turkyes13:37
argv_turkyes13:37
argv_turkunfortunately13:37
argv_turkI have 18000 images, with a height of X and a width of Y, each pixel location on each image has 3 values, the R G and B.13:37
argv_turkhow should I store that in an array?13:37
InHisNameWhat is it?  If its cobol, I cannot help13:37
argv_turkC13:37
InHisName.mp4 ?13:38
argv_turkint array[18000][height][width][RBG]?13:38
argv_turkpng13:38
InHisNameShouldn't there be an app that takes  n png images and converts to mp4 storage.  Then is able to do the reverse when needed ?13:39
argv_turkwhy would I need to do that?13:40
argv_turkI already have the mp4 and the pngs13:40
argv_turkI need to do some data operations on the pixels13:40
argv_turkso I need to store them properly13:40
InHisNameyou were asking for compact way to store them?13:40
InHisNamepng is good for a still image13:41
argv_turkI was asking for a way to store them inside of a program13:42
argv_turksorry13:42
argv_turkI need a way to access them from inside of the program13:42
argv_turki need to I read all these pixels,  do some operations, and then write out some into13:43
InHisNameWhat kind of program?   One that you compiled ?13:43
argv_turkyes I am writing a program to compute the mode of each pixel across nImages13:43
argv_turkto generate a common background13:43
argv_turkrather to derive one13:43
InHisNameSo you are reading all the pixel values and running some math for an answer for each image ?13:45
argv_turkreading all of the pixel values, and running math for a certain pixel across images13:46
argv_turkso13:46
argv_turkmaybe it's pixel (1,1) and we need to compare the RBG across all 18000 images13:46
InHisNameOpen up file directory to the list of 18,000 and start with first one and loop until the last.13:48
InHisNameopen up on image into memory.13:48
argv_turkyes13:49
argv_turkexactly13:49
argv_turkI am asking how to declare the array13:49
argv_turkif you don't know - well - me neither.13:49
InHisNameLoop on that image and do the repeating calcs for that image.  Save anything in running totals if you need those.  Save details into metadata of the file  (like audio data in mp3's)13:49
InHisNameC  language ?   There are std ways to open a path and import the list into memory then loop the list.13:50
InHisNameThen open each item as you loop it.13:50
InHisNamearray[2000][3000] x 3 for a 2k x 3k image ?  so array[345][567][1]   is red and [345][567][2] is green and ...[3] is blue of the same pixel.   That syntax is used in several languages, not sure if c though.13:56
InHisNameOr maybe no array at all.   Just var[18,456] to hold all the bytes of one image plus extra bytes. Then the whole file is stored in memory.  Then you just do your array walking by calculating the position into the file.14:00
InHisNameOr build your own raw file reader/writer.  Must know your file format to the byte detail.  What each byte is for.14:04
InHisNameFor example:  image 3k x2k x3 bytes.  Horiz 3k, vert 2k,  3 colors.   plus 993 bytes before 1st image bytes.  plus 558 trailing misc bytes.  plus wasted padding to fill up last sector.14:06
InHisNameSo do sector reads.  1st 512 is leading bytes. 2nd is mixed 481 2nd batch leading bytes.  Remaining are image bytes. 31 bytes total.14:08
InHisNameSay the bytes are store thusly:  row 0 col 0 blue, green, red, row0, col1, blue, green, red, etc.14:10
InHisNameLoop14:10
InHisNamerow =014:10
InHisNameloop {row}14:10
InHisNamecol = 014:10
InHisNameloop {col}14:11
InHisNamecolor = 014:11
InHisNameloop {color}14:11
argv_turki give up14:11
InHisNameimage[col][row][color] =raw[index]14:11
InHisNamecolor++14:12
InHisNameend loop color14:12
InHisNamecol++14:12
InHisNameend loop col14:12
InHisNamerow++14:12
InHisNameend loop row14:12
InHisNameuntil you read all raw bytes in and store into your array  image[row][col][color]14:14
InHisNameNow you can loop on your image and do math on it14:14
InHisNameWhen done save data accumulated into metadata and save file.  Add other data to running totals if desired.14:15
InHisNameloop back to read next image file and do again.14:15
argv_turkgood idea14:16
InHisNameCheck C libs for maybe something prebuilt that reads in png files.  Use their format for array and process on that.14:17
InHisNameC is old    png are pretty old.  There is bound to be something that is already made that could be reused.14:18
argv_turkyeah I looke14:27
argv_turkI am using Imagmagick to parse the array14:27
=== pleia2_ is now known as pleia2
=== Joe_CoT is now known as Balls
=== Balls is now known as Joe_CoT
=== Joe_CoT is now known as dracopervicats
=== dracopervicats is now known as Joe_CoT
* waltman narrowly avoided jury duty for the second straight day!21:29
JonathanDwaltman: would love to come to this thing saturday...22:38
JonathanDWe're having a family thing at the zoo though.22:39
JonathanDand it looks like this is basically all day?22:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!