Questions tagged [image]

37947 questions
1

votes
1

answer
1.1k

Views

Unable to resize image and maintain transparency

The below code resizes an image. Unfortunately the image which is a vertical image has black bars on the sides. It looks as though the transparent, or blank space is being filled with black. I've tried setting the background color to white, and using alphaRGB but can't seem to shake it. OrderProd...
Webnet
1

votes
1

answer
497

Views

Extract low-frequency coefficients of Fourier transformation

I have applied the Fourier transformation on an image like so: I = imread('img.jpg'); img = fftshift(I); F = fft2(img); magnitude = mat2gray(100*log(1+abs(fftshift(F)))); % Magnitude spectrum phase = mat2gray( (angle(F)) ); % Phase spectrum Using the energy compaction proper...
Andrei CACIO
1

votes
2

answer
4.5k

Views

How to apply box filter on integral image? (SURF)

Assuming that I have a grayscale (8-bit) image and assume that I have an integral image created from that same image. Image resolution is 720x576. According to SURF algorithm, each octave is composed of 4 box filters, which are defined by the number of pixels on their side. The first octave uses fil...
moose
1

votes
1

answer
6.6k

Views

How to load PNG files with pygame.image?

I'm simply trying to load an image with pygame with that piece of code : import pygame myimage = pygame.image.load("bla.png") And I get the error : pygame.error: File is not a Windows BMP file Note that when I call pygame.image.get_extended() it returns 0. How can I fix that and get the other format...
kaldo
1

votes
0

answer
3

Views

Backend creation of 3D tours from 2D images

I am looking for a tool to create 3D tours from 2D images. I am very flexible when it comes to the front-end, I am just looking for a tool that upon receiving some 2D pictures and some data on where they were taken / where they have to be placed, it is able to re-create the 3D environment. I only fo...
Masiar
1

votes
5

answer
252

Views

Position image center of div whetever image size

I have in a problem with centering an image.Hence I have many div and in every div have two div that is divided into two.In those two div I will show two image.Each of these two div is 300 pixel.Problem is images may be small or 300 pixel and I have to show images center if small and if image is 300...
Rasel Ahmed
1

votes
1

answer
900

Views

Single page website with background image attached to bottom

I have a long single page website here with 6 100% long pages. Until here we have no problem, the twist is, the page should scroll from bottom to top and the background image should me aligned to the bottom. Here's what I have until now. I don't yet have the screen starting at the bottom. I'm trying...
Digger
1

votes
3

answer
1.9k

Views

How to check background image

I have a few buttons in my application that can have different background images. Now, at the OnClick function, I need to check if the Background Image is the image name "williboese" in drawable. I tried like this: b.setOnClickListener(new View.OnClickListener() { @Override public void onClick(Vie...
user896692
1

votes
1

answer
535

Views

Enlarging an image without blurring by taking one pixel and turning it into four on a new image with different dimensions

I have previously written an image enlarger algorithm that enlarges images without blurring by doubling the image size and making a single pixel into four pixels on the new image. This was originally built for 500x500 pixel images and it worked absolutely fine but now I need to use it for an image t...
Henry Hunt
1

votes
1

answer
4.9k

Views

cvtcolor in Cv2 - no attribute

I'm writing a program to collect a series of images from a USB microscope and generate an average as a way of denoising. I'm having to convert the image into a numpy array, sum the pixels then divide before converting back to an image. Somewhere along the line the channels get mixed so my output is...
Microscopist
1

votes
2

answer
1.1k

Views

Subtract background from image

I am trying to to subtract the background from a picture of an object to leave only the foreground object. I have found the RGB values of the background as 218 220 219 using imshow(). How can I use the RGB values with imsubtract()? y = [218 220 219]; z = imsubtract(img,y); Error using imsubtract (li...
Jak
1

votes
1

answer
367

Views

wpf image source depending on object property

I have a boolean property in my class, say: private bool isFolder; public bool IsFolder{ get; set; } and I have an image in xaml: I would like that image to have one imageSource when the IsFolder is true and another one - when it's false. How can I do that? Thanks in advance.
Mike Spike
1

votes
2

answer
600

Views

Jboss EAS + Apache mod_proxy don't load image

I created a web application that runs on a ubuntu server with JBoss EAS 6.2 and Apache2 with mod_proxy enabled, but when I open the page in the browser, the images do not load. This is my Apache configs: ProxyRequests On ProxyPreserveHost On ProxyPass / http://pegabuzz.com:8080 ProxyPassReverse...
0

votes
1

answer
15

Views

HTML5 & CSS Header banner image and text alignment

I've been trying to put a banner image behind a text in the top header but the formatting just doesn't seem to work out. I also tried background-image: url(/imgs/header_pic.jpg); in the stylesheet but that way it doesn't even show up. Currently it shows up, behind the text, image can't be centered o...
Greg H.
0

votes
0

answer
2

Views

Ionic imagePicker is not opening gallery

I am trying to use the following Ionic plugin so that I can open the gallery and choose multiple images: https://ionicframework.com/docs/native/image-picker#installation The problem that I'm facing is that when I tap the button to see "My Photos" I just get nothing come up. In order to install I st...
maudulus
1

votes
2

answer
3.2k

Views

Transparent Text Box - Image Overlay

How can you overlay text over an image with a background, like this
Arjun Naha
1

votes
1

answer
1.7k

Views

Image picker or file chooser for OS X Cocoa

In my application i need to pick up an image from filesystem. I know how to do it in iOS but no idea to make it in OS X. Is there any tool like imagePicker or file chooser for OS X? Need help please. In iOS i use this: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; i...
user3065901
1

votes
2

answer
36

Views

Image not Centering when using a class identifier

I am trying to center an image using a class identifier in css. This should be a very simple exercise. So I am pretty sure the solution should be simple. img.center doesn't work either. Only way I have successfully gotten my image to center is with img only but I don't want all images to center. I'v...
Shanan
1

votes
1

answer
1.2k

Views

How to change SVG pattern image dynamically with javascript on hyperlink click

I have looked and not found a suitable answer for this. I have found answers for changing fill color but not the pattern images. Fiddle JAVASCRIPT $("a#changePattern").click(function(){ var value = $('#pattern'); value.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 'http://3...
Icewine
1

votes
1

answer
871

Views

Inspect URL and download Image

My goal is to write a java application which inspects the following URL: https://familysearch.org/pal:/MM9.3.1/TH-1971-28699-12927-58 being able to save the image (a copy of a page belonging to an old book) and navigate to next page, repeating the process. One could manually download the images but...
Thiago
1

votes
2

answer
3.8k

Views

Laravel Intervention/ Image Maximum execution time of 30 seconds exceeded

I have a photography website I am working on in Laravel. I utilize a package called Intervention / Image. In the sites administrative area is a place where admins can create projects then upload any number of images to that project. The problem is that if the images are sizable 4mb or bigger and the...
Tom Bird
1

votes
1

answer
785

Views

Rails 4.2 - Send Image Data as Email Attachment Without Saving Image

My client app is an iOS app written in Swift. In that iOS app, I convert an image to a Base64 encoded String and then send this String to my Rails server in the body of an HTTP request. This is my code for doing so: // Create a new URL request with the URL let request: NSMutableURLRequest = NSMutabl...
Alexander
1

votes
4

answer
1.5k

Views

Cannot construct tkinter.PhotoImage from PIL Image

I try to show a image in a label when I push a button, but the image are too large and I have tried to resize the image. I have created this function: def image_resize(imageFile): width = 500 height = 300 image = Image.open(imageFile) im2 = image.resize((width, height), Image.ANTIALIAS) return im2 T...
alin_hunter07
1

votes
1

answer
1.3k

Views

Align images based on a detected features in Opencv

Hi I've a base image and other images that I'd like to rotate with the same angle as the base image. this is my base image. this is an example image that I'd like to rotate. here my full code. #include #include #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #inclu...
Anar Bayramov
1

votes
2

answer
1.2k

Views

ICC based image conversion using Java

I would like to convert images using ICC profiles and Java. The source image can be RGB or CMYK based, and maybe could have an icc profile embeded. The new images should also be in RGB or CMYK color mode, and has to have a icc profile embeded. All source images will be in JPEG format. Which (externa...
tmmls
1

votes
3

answer
463

Views

How to load large amount of images in iOS?

I am developing an app which displays large number of images. when i'm loading images there's is no problem on loading of 1000 images when the image crosses the 1000 the app crashes and memory issues raised. How to solve it? Is there any way. Kindly help me? Thanks in Advance
user3853307
0

votes
4

answer
43

Views

How can I change image source in a div on mouse move with jquery?

I'm trying to teach myself how to code (especially websites). I have a good knowledge of html and css and i'm currently learning js. But know I need the help of the community to make progress! I am wondering how to achieve this effect of changing image source multiple times (in order) on every mouse...
Ted_M
1

votes
1

answer
850

Views

Nodejs image crop by coordinates

Is there is way where we can give x, y coordinates while cropoing image. Currently what i am using is Imagemagick im.crop({ srcPath: upload_path+media_file_name, dstPath: upload_path+"thumb_"+media_file_name, width: 350, height: 210, quality: 1, gravity: 'Center' }, function(err, stdout, stderr){ };...
Manwal
1

votes
1

answer
1.5k

Views

Crop image with settable center and scale in Python PIL

I would like to crop an image using PIL, although it could be some other module. I need the method to crop with a scale factor, ie 1.5 meaning that the output would be 1.5x zoomed in. Additionally, I would need to set the center where it zooms. This means setting x/2,y/2 as the center would zoom s...
1

votes
1

answer
2.5k

Views

Javascript Image() object erroneously setting height and width to 0 sometimes

I'm working on an app that is dynamically generating images with Javascript's image() object. Code below, where object is the URL I am passing in - resizeImage: function(object) { var img = new Image(); img.src = object; console.log(img); console.log(img.width); console.log(img.height); var ratio;...
Jimmy Long
1

votes
1

answer
3k

Views

How to find the Bit Depth of an image

I am trying to get the Statistics of image like width, height, bands, min, max, mean, stddev etc., I could find all of these but however i can't find the Bit Depth of an image. i could not find any function , is there a way for this ?
PythonLearner
1

votes
1

answer
828

Views

Add time stamp to photo upload

I am uploading a photo from my iOS app to my server. Currently I am hard coding the name of the photo that I am uploading but this causes all subsequent photos to be overwritten (naturally). To combat this I would like to create a new name for the image, preferably by adding a header (which I define...
Saucepan
1

votes
1

answer
4.5k

Views

OpenCv Python Color Detection

I am trying to keep track of red objects using opencv in python. Here is the code I have so far: #Identify red objects in an image #import OpenCV import cv2 #Import numpy import numpy as np #open webcam imgcap=cv2.VideoCapture(0) while(1): #view the image from the webcam _, frame=imgcap.read() #conv...
Michael22T
1

votes
1

answer
391

Views

image quality loss when scaling down

My image is 200px x 200px size. When I'm trying to draw it as 100px x 100px the image is being rendered awfull and unacceptable. @Override public void render(SpriteBactch batch){ batch.begin(); batch.draw(img, 0, 0,100,100); batch.end(); } When I'm drawin it like this: @Override public void render(S...
centenond
-3

votes
0

answer
15

Views

Which algorithm should i used for implementation for below attached screenshot for sales datasets?

I have a sales dataset for which I got the following plot I want to know which machine learning algorithm best suits for it?
Payal
0

votes
0

answer
3

Views

UNet CNN Segmentation: mask size adjustment

As shown in the UNet figure, the input image size is 572x572 and the output mask size is 388x388. In the real scenario for segmentation, the mask size should be the same size as input image. What are the ways to change 388x388 => 572x572 ? thank!
Nima
11

votes
1

answer
132

Views

How to save/read inline images in html content to internal/extrenal memory

According to this question I used a custom ImageGatter class to display images that I'm getting from a server in TextView using Picasso public class PicassoImageGetter implements Html.ImageGetter { private TextView textView = null; Context mContext; public PicassoImageGetter() { } public PicassoImag...
Mark DeSpain
0

votes
0

answer
4

Views

Mutagen : how to extract album art properties?

I am trying to get properties (just width & heigth so far, but probably more later) of an album art picture from an mp3 file using python 3.7.1 and mutagen 1.42, but nothing seems to work so far. I am yet able to extract some other information correctly : track = MP3(song_path, ID3=EasyID3) title =...
Arkeen
1

votes
1

answer
270

Views

Generate a Gaussian Image without adding noise

I want to generate a Gaussian Image by Matlab. It has 3 circles (as three classes). The intensity in each circle will be followed by Gaussian distribution. Thus, the histogram of the image will be multiplicate Gaussian distribution as a question. However, I used a free-noise image and added it with...
Jame
1

votes
3

answer
3.5k

Views

PNG images look blurry when scaled

I'm a visual/UI designer working on a project/product which has been designed by another designer. This designer provided the front-end dev with good quality PNG icons, but when the front-end dev sets the images scale to 0.7, they look blurry. I've noticed that if we set the image's scale to 0.5, th...
Milla Nascimento

View additional questions