From: Sergei S. <ser...@ya...> - 2005-09-05 19:07:11
|
Rafael, as I wrote, I am mostly interested in dealing with already existing images, not with plots. Plots deal with few (relative to Xdim * Ydim) pixels, so computational inefficiency is not that painful. Dealing with ready made images means dealing with Xdim * Ydim pixels, so computational inefficiency becomes very painful. Plplot has a demo with monochrome "Lena" image - it renders painfully slow. And if I or anybody else sticks to the same design/architecture, full color Lena will render 3 x painfully slow. When I'm saying "painfully slow", I mean compared to other image viewers, like 'xv', for example. I am not yet designing/coding anything, I am thinking. I would like to implement extensive image processing in PDL - its core routines written in "C" appear to be well suited for this, and ImageMagick can be incorporated too - it already has Perl interface, and it would be interesting to implement PDL interface to it. The practically missing part is image display - I mean, what exists today (pgrgbi) and what can be written in plplot framework is painfully slow. Thanks, Sergei. --- Rafael Laboissiere <rla...@us...> wrote: > * Sergei Steshenko <ser...@ya...> [2005-09-05 11:35]: > > > I've looked into plplot-5.5.3/drivers/xwin.c and have seen there > > PLColor_to_XColor, which should go, I think, most likely with other > > things. > > > > I mean, I would create a seperate XWindow driver - a non-color-mapped > > one > > It is preferred to have an orthogonal design between the PLplot core and > the drivers. I mean, if you create a new API function for rendering > true-color images, then its design should be driver-independent. Once > the function is added to the API, then all drivers should be able to > respond to it (probably via a new PLESC_* command). New driver should > not be created specifically for coping with the new capability. Instead, > try to design the whole thing such that all current drivers could > implement it in the future. > > -- > Rafael > ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ |