need help with imaging - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 05-11-2005, 06:02 PM   #1 (permalink)
Newb Techie
 
Join Date: Feb 2005
Posts: 11
Default need help with imaging

am curious how imaging toolkits or even softwares like Adobe photoshop etc. operate on images. functions like binarize, blur etc. change every pixel on the image, and hence must visit every pixel at least once. yet, they only seem to take a fraction of a second to process even a large input image.

on the other hand, say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), things seem to take a much longer time.

as an example, for an input image of size 400x400 pixels, even merely visiting every pixel of the image just once using a nested loop (shown below) takes close to 2 seconds, a time value way more than i can afford.

colour c;
for i <- 1 to image.width {
for j <- 1 to image.height {
c = getPixel (i,j);
}
}

is there a faster way in which an image pixel map can be processed (or even read) ?

thanks...

Sarab.
__________________

sarabjit is offline  
Old 05-11-2005, 10:01 PM   #2 (permalink)
Wizard Techie
 
Join Date: Jan 2005
Location: Delaware
Posts: 3,475
Default

They convert everything you open to an uncompressed composite.
__________________

turtile is offline  
Old 05-12-2005, 10:49 AM   #3 (permalink)
Newb Techie
 
Join Date: Feb 2005
Posts: 11
Default

What does that mean ?
sarabjit is offline  
Old 05-13-2005, 11:12 AM   #4 (permalink)
Newb Techie
 
Join Date: Feb 2005
Posts: 11
Default

found my solution...
thanks...
sarabjit is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 03:50 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.