image-manipulation

Simple WPF page selection for multipaged tiff

老子叫甜甜 提交于 2019-12-06 07:53:25
I am making a basic Tiff viewer and need to be able to select the page to be viewed. In Winforms I could use selectActiveFrame, so I was wondering if there is a WPF equivalent for this. Thanks! EDIT: In winforms I used System.Drawing.Imaging.FrameDimension in the selectActiveFrame method if that helps at all. You can use the TiffBitmapDecoder class to load the image and then use the Frames property to access which tiff frame you like. 来源: https://stackoverflow.com/questions/4546994/simple-wpf-page-selection-for-multipaged-tiff

Image processing on the iPhone

安稳与你 提交于 2019-12-06 07:21:34
问题 I would like to apply image processing on pictures taken on the iPhone. This processing would involve 2D matrix convolutions etc. I'm afraid that the performance with nested NSArrays would be pretty bad. What is the right way to manipulate pixel based images? Should I simply use C arrays allocated with malloc ? 回答1: Have you looked at the Quartz 2D engine available in the iPhone SDK? Or perhaps Core Graphics? Apple has a nice overview document describing all the different imaging technologies

Rotating part of an image in 3D space

▼魔方 西西 提交于 2019-12-06 06:59:48
Here's the setup: This is for an ecommerce art site where some paintings are canvas transfers. The painting wraps around the sides and top and bottom of the canvas. We have high-res images of the entire painting, but what we want to display is a quasi-3D representation of the image in which you can see how the sides of the painting wrap around the canvas. Here's a rough sketch of what I'm talking about: My question is, how can I rotate an image in 3D space? The approach I think I'd like to take, is to cut off a portion of the top and side of the image, and rotate then in 3D and then stich it

How to rotate and fade background images in and out with javascript/ASP.NET/CSS

走远了吗. 提交于 2019-12-06 05:34:57
问题 I need to randomly fade my background images in and out. It will be a timed function, like once every 5 seconds. I need to do it with ASP.NET, Javascript, CSS or all three. Please help me out here guys. Thank you. 回答1: Cycle, a jQuery plugin is a very flexible image rotating solution: http://malsup.com/jquery/cycle/ 回答2: This is the Answer: never mind guys, after making a bit more exact search on Google. I found a good solution. <html> <head> <!-- This file retrieved from the JS-Examples

Unsafe Pointer iteration and Bitmap - why is UInt64 faster?

心已入冬 提交于 2019-12-06 03:35:05
问题 I have been doing some unsafe bitmap operations and have found out that increasing the pointer less times can lead to some big performance improvements. I am not sure why is that so, even though you do lot more bitwise operations in the loop, it still is better to do less iterations on the pointer. So for example instead of iterating over 32 bit pixels with a UInt32 iterate over two pixels with UInt64 and do twice the operations in one cycle. The following does it by reading two pixels and

How can I change out an image using CamanJS?

拥有回忆 提交于 2019-12-06 01:57:29
问题 I've got multiple images, and I'd like to load them each into a single <canvas> element at different points in time and then manipulate them using CamanJS. I can get the first image to appear like this: Caman('#canvas-element', '/images/one.jpg'); But then when I subsequently try to update that same element using the following code, it does not work. Caman('#canvas-element', '/images/two.jpg'); Is there some way to reset/clear/flush the canvas and load new image data into it, or do I really

Reading Character from Image

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 22:17:26
问题 I am working on an application which requires matching of numbers from a scanned image file to database entry and update the database with the match result. Say I have image- employee1.jpg. This image will have two two handwritten entries - Employee number and the amount to be paid to the employee. I have to read the employee number from the image and query the database for the that number, update the employee with the amount to be paid as got from the image. Both the employee number and

Reverse Spectrogram A La Aphex Twin in MATLAB

心已入冬 提交于 2019-12-05 20:54:10
问题 I'm trying to convert an image into an audio signal in MATLAB by treating it as a spectrogram as in Aphex Twin's song on Windowlicker. Unfortunately, I'm having trouble getting a result. Here it what I have at the moment: function signal = imagetosignal(path, format) % Read in the image and make it symmetric. image = imread(path, format); image = [image; flipud(image)]; [row, column] = size(image); signal = []; % Take the ifft of each column of pixels and piece together the real-valued

Adding an Image to a Canvas in Android

ε祈祈猫儿з 提交于 2019-12-05 20:49:38
Good Day Everyone I was hoping if you could help me understand the concepts of understanding how to add an image into a canvas on a OnTouchEvent implemented on a View. So far, this is what i've come up with. parent is the Activity where in this customized view is instantiated and is added into. @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); } public void insertImage() { if (parent.selected_icon.contentEquals("image1")) { image = getResources().getDrawable(R.drawable.image1); } else if (parent.selected_icon.contentEquals("image1")) {

Image processing on Android - what libraries can I use?

て烟熏妆下的殇ゞ 提交于 2019-12-05 19:58:50
问题 I need it specifically for image distortion (filters, blurring, etc also welcomed ;) ). Do you know some libraries with appropriate license (Apache, MIT, LGPL also), that I can use? Propriety libraries with reasonable prices - open to them also. Can be in C also. thanks in advance, danail 回答1: You may want to check out OpenCV which is developed by Intel. It seems to be very mature and well-documented. Of course, it is also open-source. 来源: https://stackoverflow.com/questions/4024505/image