132 questions
0 votes
1 answer
78 views
Inserting a binary image string (of a pdf) into Postgres
I have trying to insert a binary image string (of a PDF) into Postgres table from my Spring Boot Application. I'm using JPA for DB operations. The corresponding field in my Entity class is declared as ...
0 votes
0 answers
25 views
binary image surface coverage calculation yields inconsistent results despite correct visual appearance
I’m working with a binary image generated from a microscopy image where I’m trying to calculate the surface coverage of stack-like structures (cells). The image visually shows these structures ...
0 votes
0 answers
65 views
Colour a binary image in matlab?
I have a binary image and want to set black to a grayscale colour, e.g. 160, in matlab. How do I change the colours of a binary image? I understand it is no way to change the color back to original, ...
1 vote
1 answer
159 views
Properties of Square in Binary image
I have the task to find the center, the side length and the rotation angle of a square in a binary image. In addition i have the following information given: Given a binary image with white (=True) ...
1 vote
0 answers
67 views
How to combine binary mask of different shapes
I'm trying to combine the binary mask of humans, but masks are of different shape. Suppose in a frame there are four humans, I can get the individual mask for each of the four humans. I want to ...
-1 votes
1 answer
91 views
Coloring the categorical image
I have a categorical image with the size of 14400 * 7200. I am trying the following code to colorize the values in this image. It works but takes a long time. How can I do this in a shorter time? ...
0 votes
1 answer
796 views
A binary image has a black shape with white spots and white background with black spots. How to detect the square OpenCV python
I'm trying to detect a polygonal shape in a binary image. If the shape is white then the background is black and vice versa. For example if the shape is white it has some black spots in it and the ...
1 vote
1 answer
69 views
Merge "True" chunks in binary array (Binary Closing)
I have a (big) boolean array and I'm looking for a way to fill True where it merges two sequences of True with minimal length. For example: a = np.array([True] *3 + [False] + [True] *4 + [False] *2 + [...
-1 votes
1 answer
442 views
To encode image using jbig2enc
I am trying to encode image using JBIG2 encoder that I have installed using Macports. https://ports.macports.org/port/jbig2enc/ I have also installed leptonica from Macports: https://ports.macports....
0 votes
1 answer
108 views
Implementation of JBIG-KIT Via MATLAB
I am trying to implement the JBIG compression for some images. I just want to know the compression ratio achieved by the algorithm. For this, I am using JBIG-KIT by Markus K. https://www.cl.cam.ac.uk/~...
0 votes
1 answer
173 views
Detecting B&W Clusters of Pixels
I am relatively new to Python and would like some help with some ideas to solve this problem... I have a black and white image as so: black image with white dots And essentially need to get the ...
0 votes
1 answer
433 views
Convert Binary Image to Image and Insert into Google Doc - Google Apps Script
We have a license for https://www.qr-code-generator.com/ which has an API located here https://www.qr-code-generator.com/qr-code-api/ I'm using Google Apps Script in a Google Doc. When I make an API ...
2 votes
2 answers
966 views
Extract most central area in a Binary Image
I am processing binary images, and was previously using this code to find the largest area in the binary image: # Use the hue value to convert to binary thresh = 20 thresh, thresh_img = cv2.threshold(...
0 votes
0 answers
44 views
Find the center of space between two segments in image
I have a 3D binary raster image. There are two segments and some space between them. I want to find the center of that space between the segments. (Segments: Black, Center of Segment: Blue, Wanted ...
0 votes
0 answers
150 views
How can i convert png image to binary 0 1 in python
Hello everyone how can i convert image to binary 0 and 1 like this : give the image and convert it like this : 11111111111111111111111111 11111100111111111100111111 11110001111100111110001111 ...