Category "image-processing"

Neighboring gray-level dependence matrix (NGLDM) in MATLAB

I would like to calculate a couple of texture features (namely: small/ large number emphasis, number non-uniformity, second moment and entropy). Those can be co

Convert YUV2 (YUYV) frames to RGB without use of OpenCV

I am trying to convert YUV2 frames generated by V4l2 to RGB. I was able to convert YUV2 to RGB cv2.cvtColor(im, cv2.COLOR_YUV2RGB_YUYV) using OpenCV. Currently

Object detection shows incorrect results on mask rcnn demo code

I have cloned https://github.com/akTwelve/Mask_RCNN and run the demo code. Everything works fine and runs correctly but the image processing part has incorrect

Compute distance and position from camera (lat,lon) to object on photo

I just started working on a new project, doing research about the state of the art methods computing the position of objects on photos, given the following info

How to detect this kind of artifacts/noises in my image?

I've been processing some image frames in videos and I discovered that sometimes one or two frames of the video will have artifacts or noise like the images bel

Check if an image contains blue pixels

I have this image: And I'm trying to write a function in Python that will return True if the image contains blue pixels, or False otherwise. That image is ju

Difference between absdiff and normal subtraction in OpenCV

I am currently planning on training a binary image classification model. The images I want to train on are the difference between two original pictures. In ot

Opencv : How to remove rectangle black box without removing any other characters

I would like to remove a rectangle black box from the below image. I do some preprocessing operation to keep the upper top of the image only. My problem with

OpenCV detect towel margins

What would be the best method (using python and OpenCV) of finding the lowest corner ( not edge ) of towel in this images? Also, the towel color can be differen

Is there any Difference of Gaussians function in Matlab?

I am new to Image Processing, and in my experiment I am having difficulty with Difference of Gaussians. Various implementation were given to me but I don't unde

Count lines in image

I am planning to use Opencv on Raspberry pi 3 with camera to count lines in the following image It will be used in machine which produce threads. If one (or m

Image Search using Image Similarity Measures

I am working on a project which is image searching engine. The logic behind is that there will be some images stored in a database and the user will input a new

Is it possible to turn a png into a layered PSD file?

I have a PNG image that I would like to turn into a layered PSD image. The image itself is mostly white space with several areas of text. I tried to convert t

Pixel interpolation(binning?)

I am trying to write up a pixel interpolation(binning?) algorithm (I want to, for example, take four pixels and take their average and produce that average as a

ImportError('Could not import PIL.Image. ' working with keras-ternsorflow

I'm following some lectures from lynda.com about deep learning using Keras-TensorFlow in a PyCharmCE enviroment and they didn't have this problem. I get this er

Write PNG file with less disk size in Java

I have a BufferedImage: BufferedImage bi = new BufferedImage(14400, 14400, BufferedImage.TYPE_INT_ARGB); I have saved this image to a PNG file using the fol

Armadillo porting imagesc to save image bitmap from matrix

I have this matlab code to display image object after do super spectrogram (stft, couple plca...) t = z2 *stft_options.hop/stft_options.sr; f = stft_options.

Automatically cropping an image with python/PIL

Can anyone help me figure out what's happening in my image auto-cropping script? I have a png image with a large transparent area/space. I would like to be abl

Determine if a point is inside or outside of a shape with opencv

I have images with white background and simple shapes in them (each image has one shape). I want to determine if a certain point (x,y) is inside the shape or no

Resize image to maintain aspect ratio in Python, OpenCv

I'd like to get a 1000 x 1000 picture in Python from any input picture so that the input doesn't lose it's aspect ratio. In other words, I want to resize the in