This tag is for questions related to the loading, formatting, saving, compression, and display of data representing pictures.

learn more… | top users | synonyms

0
votes
0answers
10 views

Responsive photo gallery using Flickr API

This began as just a simple sidebar widget and evolved into what you see here. I'm pretty happy with the results but the photos take a long time to render and sort out on the page. Is this mostly ...
1
vote
0answers
22 views

Resize image from StorageFile

I have created a function that will take as a parameter a StorageFile and return a WriteableBitmap. I use this data type so that ...
3
votes
2answers
150 views

Heightmap generation using midpoint displacement

I am writing a program to generate a height map following the midpoint displacement algorithm (somewhat similar to diamond-square). I'm at the point where I have a recursive program that paints the ...
7
votes
0answers
136 views

Decompose polarimetric SAR covariance matrices in MATLAB

I have the following code to implement the algorithm described in the article Adaptive Model-Based Decomposition of Polarimetric SAR Covariance Matrices by Arii, van Zyl, and Kim, in IEEE Transactions ...
3
votes
1answer
93 views

Clickable and automatic image slider

I created a slider that fades images automatically but you can also click to see the next or previous image. It already works how it should. But I think my code is really heavy. I am not experienced ...
4
votes
1answer
21 views

Making time lapse screenshots using Bash

My experience in bash is... well, around the Bourne shell on AIX. I wrote a semi-complex script in Bash, and I feel that it could be improved in 100 different ways. The Github project is here: ...
3
votes
0answers
48 views

Segmenting brain images (Dicom format) using region-growing algorithm

I have a list of images in a folder where num denotes the index of image and I used num to run the iterations in a "for loop". ...
0
votes
2answers
37 views

Scaling and cropping an image adaptively based on the window dimensions [closed]

I've tried my best (I'm new to JS) to write a script that make an image fit to its parent div with respect of the ratio and overflowing when needed. For example, if the ...
4
votes
1answer
60 views

Efficient image padding in C

I am currently implementing pyramids in Lucas Kanade algorithm for optical flow. To be able to build pyramids, I need to pad the images (mirror edge matrix elements) for the required amount of ...
0
votes
0answers
19 views

Sporadic div positioning using Isotrope

I am currently using jQuery + "isotrope" to make an image gallery where images can be filtered using "data-filters". But "Isotope" uses grids to organise the divs but I would like something like the ...
3
votes
2answers
61 views

BMP file writer

In my current project I'm writing a C function to write a BMP-File. Internally, the function is split up into three parts: write header, write info header, write data. In some of these functions I do ...
7
votes
1answer
68 views

Doge meme generator in Racket

I wrote a doge meme generator in racket some time ago, mainly as a joke, and I would like some criticism about the general style and what could be improved. Here is how the program output looks : ...
0
votes
2answers
40 views

BMP writer in C

I recently wrote a BMP writer in C: bmpWriter.h ...
0
votes
0answers
105 views

Image gallery with pagination using CSS, $_GET, and Bootstrap

I am relatively new to web development and I created an image gallery with pagination using the Twitter Bootstrap framework. Basically, I want to know if I approached creating an image gallery ...
2
votes
0answers
31 views

Transform and transpose byte[] of 32bit image data in 24bit array image data

I would like to know if someone can think about a better solution for doing this stuff. I have an array of raw bitmap data in 32bit format (RGBA). I need to transform and transpose this array into a ...
0
votes
0answers
39 views

Computing the curvature of a 2D image

I have some MATLAB code that computes the curvature of a 2d image. It computes it iteratively using forward and backward differences. Could you offer some tips for how I can optimize this code? ...
3
votes
2answers
108 views

Pixelating black and white images

I am doing a function that pixelates black and white images. The function must be called pixelate(img, (pixel_width, pixel_height), mode). The parameter ...
2
votes
1answer
48 views

Loading images in the background for a table view

I have fetchData method which fills my imagesArray: ...
3
votes
1answer
43 views

Mouseover effects for social network icons

Hey so I have written some code out in jQuery, but it seems to violate DRY. I'm not too familiar with JavaScript or jQuery, so I was just asking for some advice on how to optimize this code: ...
4
votes
1answer
58 views

Converting image size from Maybe (Int, Int) to (Float, Float)

I have a function that returns size of an image IO (Maybe (Int, Int)) It would be nice to convert it to float tuple beautifully. I am sure there must be a better ...
1
vote
1answer
56 views

Converting url data to base 64

I've a piece of code down below that I'm really unsure about. Basically an user can type the url (urlStr param of the method) he wants. From this url I need to : get the data as Base64 so I can ...
3
votes
0answers
219 views

Caching image in memory or on disk

I am caching an image locally..That same image will be used in few screens. Steps for doing this is as follows: Get image from cache If not present in NSCache, get image from Cache directory If not ...
4
votes
1answer
53 views

Caching mechanism for saving a bitmap

I needed a quick caching mechanism to save a bitmap (picture). There was no way I could get the bitmap to the class where I need to upload it to the server so for the sake of organization and code ...
10
votes
1answer
79 views

Fast way to find the most similar color in an array

I have an image and a palette that I want to apply on that image, that is, change all colors of the image to match the closest they can find on the palette. While I have multiple ways to do it, I want ...
8
votes
1answer
45 views

Image labeling: it's Monday again

This command line program applies defined labels along with Monday's date to a directory of images. The script has to handle not being run on a Monday. Others are asking for the script so I cleaned ...
11
votes
2answers
135 views

Making GIFs with Java

I wrote a Java class to make a GIF animation from a list of images. The whole project can be found here. I am pretty new with GitHub, so I would be very glad if you can give critiques regarding my ...
11
votes
3answers
283 views

Image Filter client

I've made an image filtering client for JavaScript that runs on jQuery, Vex and Fabric.JS. You simply include the required files in your html page, along with something like: ...
1
vote
1answer
163 views

CakePHP image upload component

I would like to know how I can improve this CakePHP 3.0 Component (inside folder controller) 1st: to use external libs (stored on vendor folder) I'm using the ...
3
votes
0answers
44 views

A version of the Pebble Big Time watch face that also displays the date

I'm seeking style pointers, bugs, memory leaks, incorrect usage etc. ...
6
votes
0answers
64 views

Matlab Computer Vision

Im not really certain whether this is OK, but I'm looking for some code advice- particularly around style and efficiency. the code takes a video (a drop onto a fabric surface) and I want it to return ...
7
votes
1answer
580 views

Finding rectangles in an image

So my this class is one in which is used to find rectangles in images that have already been pre-processed. For example the images are to be deskewed, greyscale etc. Following feedback off of various ...
1
vote
0answers
70 views

Resize Images Dynamically

I set out to make a simple dynamic resize method for images. Obviously, it's better to serve images that are pre-sized to avoid unnecessary server loads. But it was fun to make for a novice/beginner ...
3
votes
2answers
76 views

Dynamically creating elements with an object constructor

Just experimenting with various Javascript techniques and was wondering if the code below is valid and if there are any disadvantages to using this technique to create html tags from JS object ...
2
votes
2answers
107 views

Gallery of thumbnail images with modal enlargement when clicked

I've created a basic site with thumbnail images which when clicked open a modal type window to show a larger image with info related specifically to the image. It works as I would like. However, I'm ...
5
votes
2answers
139 views

Displaying a new image document in Picturebox

I'm using WinForms and have a picturebox in my form. This program looks in "C:\image\" directory to find a specified image document, in my case a tif file. There is always only one picture in ...
7
votes
1answer
328 views

Turning music into an image

I was bored, so I wrote something that could turn .wav files in to .bmps: ...
1
vote
0answers
85 views

Linear interpolation Matlab to C++

I don't have a strong mathematics/Matlab background. I would like to convert this Black level correction function from Matlab to C++. Please comment about on the code style and correctness of my ...
7
votes
1answer
75 views

RGB <-> HSL converter + hue shifting

My input is basically a .png image from the img/ directory (I figured out that I should parse it, because there is an exploit ...
3
votes
0answers
91 views

Algorithm for downloading images

I am working on a product application where user could sell/buy. This application is based on collection view. Collection view has collection cell where it displays product image thumbnail. The ...
2
votes
0answers
92 views

Bitmap to base64 and writefile

I have the following code which does 2 things: Return a scanned fingerprint as base64 Store this print as bitmap While the code works most of the time, sometimes an invalid bitmap is saved (I ...
1
vote
0answers
78 views

Overlay on an image

This is, for instance, used on this page, and it overlays the main product picture with some DIVs: ...
6
votes
2answers
121 views

Mandelbrot Set Fractal

I thought I would give this months community challenge a try. This is my first time using Python. It does take quite a while to run and it's not very colourful but it works. ...
6
votes
0answers
61 views

Multithreaded Groovy Mandelbrot

Seeing as it's October, I thought I'd do the community challenge. Due to my inexperience coding in Groovy, I decided to give Groovy a go. I'm not sure how well I followed Groovy conventions, and the ...
6
votes
2answers
5k views

Storing data in the pixels of an image

I've recently redone something I wrote around a year ago since I'd done it wrong (it required the original image to decode an imagine, which can be avoided), so I'm wondering if I could either get ...
5
votes
1answer
116 views

Two-step OpenCL convolution for series of matrices

I've implemented a two-step convolution in OpenCL running on GPUs. The convolution is applied to a series of 1480x1552 matrices. All matrices are pre-loaded and are stored in the ...
5
votes
1answer
225 views

Simple Python + Gtk.Window

I'm learning Python and Gtk so I decided to write a simple application that will take some image let user annotate with a pen and send results through email or save to a file. So far I have the ...
1
vote
1answer
51 views

Adjusting the height of a div to match that of another column

This code checks whether an image whose parent is .papers.left has completely loaded into DOM and if yes then the background of ...
1
vote
0answers
85 views

URL image validation

I'm trying to write a method to validate an image from a URL. The method will accept an array of image URL. The image should be validated by its type, size and dimensions. Right now, I'm able to ...
4
votes
1answer
444 views

Greyscale converter performance in Swift

I have a single class which converts an image's colors into greyscale (except one given color, which will be left as it was before): ...
3
votes
1answer
46 views

Reading headerless image style and performance

This code is working and was tested for over 10000 images. I have many headerless images, i.e images which are binary files with known dimensions. Some of the images have a visible area which is ...