This tag is for questions related to the loading, formatting, saving, compression, and display of data representing pictures.
3
votes
1answer
20 views
Steganographic message hiding
This code hides a message in an image by altering the blue values in the top left part. This is just for fun as I think it would be easy for a cryptographer to find and decrypt this.
Original
With ...
6
votes
1answer
87 views
Sort all the characters according to their brightness
I wrote a little fractal noise generator the other day, and to test it I wanted to display the dark values with a darker character and the bright values with bright characters (I use a dark background ...
0
votes
1answer
35 views
Calculation of image offsets for performing cropping
I am using the java.awt.Rectangle class to construct subsets of a GEOTIFF file. In order to do this I would need to specify the x,y offsets, height and width of ...
2
votes
3answers
57 views
Know the limits of an image after rotation
I have an image which I know the number of rows and the number of columns. I would like to calculate the limits of the new image after a rotation.
...
5
votes
2answers
54 views
Terrain height map generator
I wrote a Perl script that implements the algorithm described in this
article to generate terrain height maps. The idea is to raise a random hill \$i\$ of size \$r_i\$ centered at point \$(x_i, ...
7
votes
3answers
85 views
Fastest way to change the HSV value of all pixels in a bitmap
I want to change all the pixels in an image to have the same value, in terms of the HSV colour space.
At the moment I'm running the following code:
...
4
votes
1answer
77 views
File deletion takes a long time to delete files
I have a script I need to "duplicate" and modify to allow it to delete certain images based on properties I give this app/script. Currently the script just moves/sorts the images into folders based on ...
5
votes
0answers
42 views
Converting ASCII to an image
So after I finished my fractal generator, I decided that text is ugly, at least compared to pictures. So I made a text-to-picture converter:
...
5
votes
1answer
54 views
Optimizing bilinear interpolation
I have spent countless hours trying to speed up my bilinear interpolation up. I even tried implementing an SSE version (a double version and a float version), but that was even slower than this ...
2
votes
1answer
75 views
Scanning image pixels
This code checks 2 images' pixels, compares each pixels based on the threshold (<= 7), finds a best fitting watermark image from the system given 6 images, and loads that image next to the cover ...
1
vote
2answers
48 views
Variables for creating a 5x5 box
I have to create a 5x5 box using the images, and my first solution was to create 25 variables and print them, which is very inefficient. How can I optimize this? This utilizes cocos2d-x.
...
1
vote
1answer
34 views
Resize images in the background after upload
I have working code that uploads and resizes images. What im trying to figure out is how I can direct the browser to another page or view kind of the way facebook does, but still call the resize ...
4
votes
1answer
48 views
Generating a thumbnail collage of videos
Just came home from a vacation, and I have a bunch of GoPro videos that I want to compile into a fun music video. In order to support this process, I wanted to write a script that would take all my ...
4
votes
2answers
215 views
Upload a photo with a unique name using PHP
I have written a script for basic uploading of a single image to a web server using PHP. This is an example that is intended for educational purposes in a basic PHP course. It does not take extensive ...
0
votes
2answers
38 views
Image-uploading
This currently works properly, but just takes too long. Some of the functions in it are necessary and need to remain, such as resizing, and double saves. But it probably has room for improvement. I ...
3
votes
3answers
111 views
Loading images according to screen width
This uses HTML5 data attributes to load the image according to the screen width. For example, for laptops. it loads only laptop-sized images. saving bandwidth and optimizing speed.
Live example
...
6
votes
1answer
51 views
“Heat spot” image generation using bilinear interpolation
This is the code from my answer to a another CR question. My goal was to provide a fast and simple computation and I'm rather unsatisfied with it. It's maybe 10 times faster than the original, but ...
9
votes
1answer
63 views
Blurring an Image
Lately, I've been part of a team working on a utility library for iOS called Thundercats (on Github). We're about to start working on some changes and upgrades in preparation for a 2.0 release, so we ...
12
votes
5answers
378 views
“Heat spot” image generation performance
I wrote a function that generates an image like this.
The function is as follows:
...
1
vote
1answer
74 views
Converting an image from polar to cartesian coordinates
I have the following code which has too many loops inside it (almost 13 billion). This code is actually for image processing. I am first making a matrix of dimension 1024*360. This is the value of the ...
2
votes
1answer
28 views
Creating and manipulating a variant number of bufferedImages for vision algorithm
I'm developing an algorithm that takes structured light patterns to determine 3D properties of objects. This class builds the structured light objects. It creates a buffered image, and based upon ...
3
votes
0answers
77 views
Image manipulation using HTML5 Canvas
I have recently started researching some computer vision, and in the process of discovering some interesting things I have been compiling some functions that allow me to manipulate images at a low ...
8
votes
2answers
105 views
Get icon from website, show and update icon
I was thinking the other day how could I get the icon from a website and make it show and update when it is updated on the site so I made this code:
...
8
votes
2answers
80 views
Camera intents and file manipulation
I am building an Android application and there are five Activity classes or if you're familiar with the MVC pattern they would usually be the ...
0
votes
0answers
13 views
Implement Chambolle dual formulation method in matlab
I would like to implement an Chambolle dual formulation method. The method can be summarize as following
This is my implementation in matlab. However, it does not give true result (but combine ...
4
votes
4answers
223 views
Engineering a minimalist image interface without templates
I'm practicing different ways of class design, so I'd like feedback on the design characteristics. Of course code practice comments are also welcome.
It was a conscious decision to omit templates. My ...
2
votes
2answers
60 views
Displaying an overlay when hovering over photos
I have some very illogical jQuery code and I want to see if someone finds a better way to do the exact same thing:
jQuery:
...
2
votes
1answer
92 views
JavaScript Image Slideshow
I've created a JavaScript image slideshow, using only JavaScript (no jQuery). I want to become more familiar with JavaScript, which is why I didn't use jQuery.
My four requirements were:
It must ...
2
votes
2answers
118 views
Upload image from Remote Server using URL
This PHP class is to allow user to enter a URL of a remote image file and have it download the image to local server. It will be used in a Markdown editor just like Stack Overflow / Stack Exchange ...
5
votes
1answer
136 views
Histogram of a RGB image using OpenCV
I wrote some C++ code using the OpenCV library. The program reads the image and plot histograms of Red, Green, and Blue components. I am very new to OpenCV so I need comments and advice. What do you ...
2
votes
1answer
65 views
Black Level Calculation for Raw Bayer Image
I have black Raw Bayer Images RGGB color space. I want to go over each pixel in their channel and sum them up for each channel, then divide it by the number of pixels for each channel. I'm trying to ...
3
votes
2answers
70 views
Image processing routines for an image de-noising program
I have written a multi-language software to implement an image denoising algorithm (composed of many sub algorithms) called CANDLE. I have a C program that is part of the software and would like to ...
4
votes
0answers
29 views
Basic declarative style to rotate and crop an image array
I wrote a couple of basic Clojure functions (practicing a declarative style) and I was looking to get some feedback on them. You can see all the code here. Is there anything I could improve on to ...
2
votes
4answers
284 views
Hovering over images to show another image whilst fading in & out
I'm trying to figure out how to correctly hover over an image to fade in another image and when you move your mouse out, it would go fade back to the normal image.
...
2
votes
1answer
102 views
AngularJS image size validation directive
I've written a directive to validate the width and height of an image in AngularJS. I'm not a JS genius but I get along with it. So I would appreciate some feedback on this directives code if this can ...
4
votes
1answer
99 views
System.Drawing.Bitmap Wrapper Class
I have created two classes to help me work with images in C#. I decided to wrap the System.Drawing.Bitmap so I don't have to deal with different file formats (let ...
4
votes
1answer
117 views
Daily Desktop Background
I've created a simple command-line program that downloads the Bing Image of the Day, then sets it as my desktop background.
It is a console application, and closes immediately after setting my ...
2
votes
1answer
99 views
jQuery plugin - image slider
This is my first jQuery plugin (used the jQuery ui widget factory). All code improvements are welcome.
GitHub
The plugin creates a gallery with one big picture and a given amount of clickable ...
7
votes
1answer
140 views
Finding and pasting images into a specific cell
The below macro finds and pastes images into column A. While the macro works, it starts to slow down when running 500+ images. I am not too familiar with the VBA language, does anyone have any ...
5
votes
2answers
77 views
Mandelbrot image generator 2.0
I have rewritten my C Mandelbrot set image generator, including many suggestions given in my previous question (see: Mandelbrot image generator), as well as some recomendations by a friend.
The total ...
14
votes
5answers
759 views
Mandelbrot image generator
I have written a C program to generate a PPM (Portable Pixmap) image of the Mandelbrot set. The program implements many things in C I am fairly unfamiliar with (Structures, error handling, use of new ...
1
vote
1answer
70 views
Naive demosaic for bayer images
I have this legacy code and I don't really think this is easy to read/maintain it. Can you suggest a way to make this more readable while still saving the performance?
...
2
votes
0answers
50 views
Parallelized image transformations using GraphicsMagick
This is part of a script that I use for porting a TWRP Theme from one resolution to another. Respectively portrait to portrait and landscape to landscape. In this function entirely, it focuses on the ...
1
vote
0answers
31 views
Super Resolution in the Wolfram Language, Attempt 2
This is a wolfram language program I wrote for super-resolution, in this case meaning to guess at how to increase the the resolution, and so detail shown in a raster image such as a photograph.
It ...
2
votes
2answers
91 views
Image resizer and uploader
I've written an image resizer / uploader, that takes an incoming image, resizes it, and uploads it to the server, under the /usericons/ folder.
However, the code ...
2
votes
3answers
165 views
Loading visible images
I am using this code to get images to load only if they are visible. However, it seems to be slow with thousands of images, even if they are not rendered.
...
2
votes
1answer
48 views
Powershell photo sorter/mover
I'm just beginning in Powershell - This will be my first full project, start to finish, and it's quite small. I have already had experience in C#, which helps in this .Net based language.
This ...
3
votes
3answers
74 views
Device-dependent image descriptor fields
In a Java class that belongs in a library, I have a field size that indicates size of image. It must be int, but some values are ...
1
vote
3answers
79 views
Dimension comparisons for calculating image thumbnail size
I've been toying around with some code I wrote a while back, in an attempt to make it "cleaner" based on what I've read. Does anything stand out to you as bad conventions here? What are your thoughts ...
3
votes
1answer
344 views
Steganography - images within images
Normally, you would change the LSB of the RGB channels in a pixel, they would represent the bits you are storing in the image. My method differs in that I represent my bits as either odd or even ...