Questions tagged [loadimage]

179 questions
1
vote
0 answers

How is rails prefixing global. to asset scripts in my vendor folder?

I'm trying to use https://github.com/blueimp/JavaScript-Load-Image with my Rails 4.2 application and I'm seeing behavior that I cannot explain. The original javascript that I'm putting in my vendor folder will have a line like var useCanvas =…
json
  • 141
  • 10
1
vote
0 answers

Load medical images from subfolders

i try to work with chest x-ray images data from stanford ml group. However, in order to train my data i need to load images from subfolders: chestXray/train/#patiendIDs-here/#studyIDs-here/view-jpeg-files.jpg i tried different ways with…
1
vote
1 answer

Processing PApplet loading image not working

I'm using the processing.core.PApplet library in a simple Java Project. I load multiple images in the setting function and I tried to draw them in the draw function but oddly the textures doesn't appear ? There is the code I use to load them…
Ayfri
  • 570
  • 1
  • 4
  • 24
1
vote
1 answer

How replicate Texture2d.LoadImage for png to get RGB32 format (now getting ARGB32)

I am trying to improve performance for the code I use to convert a png to grayscale. I load image via Json, convert to texture, then grayscale at runtime going through each pixel and using GetPixels32/SetPixels32. Memory use is too high for the many…
1
vote
1 answer

p5.js loadImage(); returning null with error 'SCRIPT5007: SCRIPT5007: Unable to get property 'x' of undefined or null reference'

I am currently recoding a game and im having problems with the rendering engine. i think that the problem is in my file paths, because the old (and identically coded) version works just fine. I've tried moving the program to another disk, changing…
1
vote
2 answers

load all the pictures (jpg and png) automatically from a folder alphabeticaly

I am loading pictures from a photos folder manually like this :
1
vote
1 answer

How do I get the face_recognition encoding from many images in a directory and store them in a CSV File?

This is the code I have and it works for single images: Loading images and apply the encoding from face_recognition.face_recognition_cli import image_files_in_folder Image1 = face_recognition.load_image_file("Folder/Image1.jpg") Image_encoding1 =…
DataBach
  • 1,330
  • 2
  • 16
  • 31
1
vote
4 answers

How to load all images from folder? (Processing, Java)

please help me. I want to load multiple images into this processing sketch without knowing the datanames. So that i can always just put .png images into the data folder and the program automatically loads them in. I've searched in some forums but…
1
vote
1 answer

NullPointerException trying to show an image in Processing 3.3.7

I'm new to Processing and I'm studying it using the Processing Handbook. I have this example code : PImage img; void setUp() { size(200, 200); img = loadImage("selfportrait_small.jpg"); } void draw() { background(255); tint(255, 102); …
1
vote
1 answer

Using Processing's loadImage in JavaScript

I am using the Processing API to draw an image to my HTML canvas, which I can use later in the code. The JavaScript code that I have is: var sketchProc = function(processingInstance) { with (processingInstance) { /* @pjs…
Daniel Hong
  • 93
  • 1
  • 7
1
vote
1 answer

Android load photos from mobile storage to GridView

I am writing this mobile app, on main screen there is a grid view which should display all the photos on the mobile device. And a button to take photos. I already wrote the imageAdaptor, and now my app could display photos I put in the R.drawable…
Efan Du
  • 123
  • 2
  • 4
  • 14
1
vote
1 answer

LoadImage Function isn't Working With ImageMagick Created Bitmap Images

I am trying to load some bitmap images with my application to do some comparisons whose created using ImageMagick using following command: C:\Program Files\ImageMagick-7.0.6-Q16>Convert << SOURCE BMP >> -crop -650 << DEST BMP >> Above source bitmap…
GTAVLover
  • 1,407
  • 3
  • 22
  • 41
1
vote
0 answers

PHP cannot load image and display it

I am trying to make a php script to load image and display it depending on $_GET paramters. I want to use this later to load image into my mobile application(Android). The problem is I cannot make image to display. I use the code…
Alek
  • 67
  • 9
1
vote
2 answers

HBITMAP hbm=LoadImage function returns NULL

I'm having issues displaying a bitmap on the screen. When I complile and run its not displaying anything so I tried debugging step by step and found that the below code is the issue. HBITMAP hbm = (HBITMAP)LoadImage(hInstance, …
Jemma
  • 13
  • 1
  • 3
1
vote
1 answer

Using JavaScript-Load-Image library to load an image from a file and it quadruples the size of the image

Using JavaScript-Load-Image function loadImage(...). But the base64 string is roughly 2-4x longer than loading it via FileReader(). I'm already dealing with large files so they cannot be so much larger. var reader = new FileReader(); reader.onload =…
benwiz
  • 2,167
  • 3
  • 22
  • 33