image

Java: Unit testing image manipulations

I have a method that deals with an image. The method takes one image, performs some manipulations over it and returns another image: public BufferedImage manipulateImage (Image image) { ... } I'm not sure if there are any best practices of writing unit tests for such activities. What characteristics of the image should be checked ...

Android how to create tiling wallpaper image?

I have an image of a pattern and I want to create a larger image from this by tilling it so that the user can apply it as a wallpaper. How would I go about doing this? The pattern tile can be of varying dimensions. I also want to be doing this with a color palette so I have 5 different colours and I want to make a wallpaper that consis...

Resource referenced in user control does not appear when user control is referenced in another assembly

I have 3 assemblies: Number 1- ResourceAssembly which contains a subfolder Images with 1 image in it (build action = resource). Within that subfolder is a ResourceDictionary with build action set to resource. The resource dictionary contains the following- <BitmapImage x:Key="BluePlus_48x48_72" UriSource="112_Plus_Blue_48x48_72.png"...

How do I delegate Jquery UI click from image to list item?

I have a UL that contains items that the user can click on and move from one list to another. I have a function to inspect the list item and move it from one list to another and it works well -- except for one problem. The list item contains an image (which also responds to the click event). So if my user clicks on the image (essenti...

jQuery fill the body with images

1) We have <body>, it's height and width varies (different resolutions). 2) Many blocks with images inside it, can be more than 50 blocks. 3) width and height are equal for each block. How can we fill the body with all available images, that can be visible on current resolution, and hide others? There should be no horizontal/vertical...

[SOLVED] C#, WPF, streaming source of an image not working.

I am using the following code to stream an image source: BitmapImage Art3 = new BitmapImage(); using (FileStream stream = File.OpenRead("c:\\temp\\Album.jpg")) { Art3.BeginInit(); Art3.StreamSource = stream; Art3.EndInit(); } artwork.Source = Art3; "artwork" i...

Code not working for image processing in matlab

I wish to compute this formula in matlab [m,n,d]=size(img1); matrix1=sum(abs(img1-img2)); a= matrix1/ m*n ; b=a*100; where img1,img2 are two images of dimension 512*512*3 The objective is to obtain a single numeral value, but i am getting a matrix. The actaul formula in case of a matrix A,B with i rows and j columns is = (summation [...

mean absolute difference method for video stabilisation project in C++/CLI

Hello, I try to implement video stabilization project in C++/cli.First of all I have bmp image sequences,and I found motion vectors that show how much specific pixel region move between each image frame . For example I have 256*256 image, I selected 200*200 region in first image frame and secong image frame.And I found how much pixel m...

Languages to be used in sketch generation and lip synch

hello everyone, i am a final year student of computer engg.i am doing a project on sketch generation from an image.The generated sketch will then be given the feature of lip synch. I wanted to know what type of programming languages would be suitable for this kind of application? Thanking you in advance ...

How to thread safe call to PictureBox.Image in c# , currently gives one of 3 errors.

I am using this PictureBox on a form, to this picture box I use the AForge Code. I pass the REFERENCE of the pictureBox into a webcam class I create that initializes the webcam and tells it where to draw its frames to....so it happily draws it frames... no problemo. But then certain times (when I want to do stuff with said image, if a ...

HTML5 drag and drop between windows

Hi, is there anyway with the HTML5 Drag & Drop functionality or/and the File API to drag an jpg image from one window to another? The idea is that I could drag and image from Facebook to a different browser's window with a custom HTML that would get that image. Or, at least, a way to drag from the Desktop to a browser? Thanks a lot ...

Android activity image background size.

Hello, I am a bit confused on creating an image which will be acting as a background for my activities. So, in short, my aim is that my application should be able to fit the different screen sizes. Therefore, what size in pixel should my three images be to be able to fill the screen of the device in ldpi, mdpi and hdpi? Thank you for a...

Jquery - changing img source from a list of links ?

Hi I have a list of links with an icon next to it - I'd like to be able to change the icon img source when the mouse is over a link (so that each link will change the icon to a different image) and I'd like to do it with jquery but I can't figure out what's the best way of doing it. Ideally I'd like to give the links a class so I can u...

PHP HTML image output

In the PHP manual for base64_encode() I saw the following script for outputting an image. <?php $imgfile = "test.gif"; $handle = fopen($filename, "r"); $imgbinary = fread(fopen($imgfile, "r"), filesize($imgfile)); echo '<img src="data:image/gif;base64,' . base64_encode($imgbinary) . '" />'; ?> But how can you output an image dyna...

How do I include an image in a window with pygtk?

Hello there. I'm trying to make a program in python which creates a fullscreen window and includes an image, but I don't really know how to do that. I've tried to read documentations on pygtk and I've searched in both goodle and stackoverflow, without any success. Here's my current code. def __init__(self): pixbuf = gtk.gdk.pixbuf_n...

scalable layout for storing and displaying user uploaded images

I am trying to figure out the best way to layout my directory structure so that I can store images from multiple users in a way that would be scalable when used in combination with a database. The database will store the absolute path to each image. So lets assume I was dealing with users' profile images each of which would have thumbn...

how can I become an image creator?

I'm a web developer but I usually have difficulties making my apps beautiful. I need to learn how to create good images, icons, backgrounds, logos, etc. the problem is, I don't know for sure where do I start. I need guidance. can you guys show me a pathway to learn that kind of stuff from zero to expert? what do I have to read? what do ...

need to combine several jpegs into a bigger jpeg in a lossless way programmaticaly (.net)

i have several jpeg images and i want to combine them into one big jpeg image. i can do that by creating a Bitmap and then combining them there but that way if i save it again as jpeg the image will deteriorate. so is there any method that i can do that without losing quality from decoding/encoding? in acdsee program i saw an option to r...

How do I send an embedded image in gmail

I want to send links like : http://www.geekinheels.com/storage/world_of_programming.jpg as emedded image. Is that possible. ...

Jquery Ordering img position

I am trying to order my images on page like an hexagon.I found solution for this on java and now I am trying to implement it on Jquery. Firstly I crated my photo list div element <div class="photoList"> <?php $categories = find_category(); foreach($categories as $category): ?> <div id="userList"> <img id="<?Php echo $category['cat...