pgm Questions
3
Solved
I am interested in reading a pgm file in python as a numerical file/matrix
Right now I open the file with
f = open('/home/matthew/NCM/mdb001.pgm', 'rb')
When I read the first line, it looks as ...
2
I want to read pgm image in python. I use cv2.imread('a.pgm') but it returns wrong results. In Matlab, I use imread and get the right result which is a single channel 16-bit image. But cv2.imread i...
6
Solved
I'm trying to write a converters algorithm that takes a JPEG image and returns its PGM (Portable Gray Map) version.
The problem is that I can't understand how the "official" JPG->PGM convertitors w...
Larry asked 12/7, 2013 at 13:24
3
Solved
I have 16-bit PGM images that I am trying to read in Python. It seems (?) like PIL does not support this format?
import Image
im = Image.open('test.pgm')
im.show()
Shows roughly the image, but i...
Maltase asked 9/9, 2011 at 15:10
2
Solved
So far I can read every line and print it out to the console:
void readFile(){
string line;
ifstream myfile("example1.pgm");
if (myfile.is_open()){
while (myfile.good()){
getline (myfile,li...
5
Solved
What is an efficient and clear way to read 16-bit PGM images in Python with numpy?
I cannot use PIL to load 16-bit PGM images due to a PIL bug. I can read in the header with the following code:
d...
1
Solved
on my previous post I needed to distribute data of pgm files among 10 computers. With help from Jonathan Dursi and Shawn Chin, I have integrate the code.
I can compile my program but it got segment...
Byrdie asked 9/3, 2011 at 14:52
1
© 2022 - 2024 — McMap. All rights reserved.