Questions tagged [pbm]

pbm - NetPBM bi-level image format

The PBM format is a lowest common denominator monochrome file format. It serves as the common language of a large family of bitmap image conversion filters. Because the format pays no heed to efficiency, it is simple and general enough that one can easily develop programs to convert to and from just about any other graphics format, or to manipulate the image.

The name "PBM" is an acronym derived from "Portable Bit Map."

This is not a format that one would normally use to store a file or to transmit it to someone -- it's too expensive and not expressive enough for that. It's just an intermediary format. In it's purest use, it lives only in a pipe between two other programs.

Source: The NetPBM manual

21 questions
0
votes
1 answer

How to make space between every two pixels in a pbm file(ASCII mode)

I have a test.pbm file in ASCII mode containing the code as follows: P1 # Comment 9 9 000000000 011000000 011000000 011000000 011000000 011000010 011111110 011111110 000000000 I want to make a new file "newFile.pbm" which will contain space…
Primo
  • 19
  • 5
0
votes
0 answers

Bit Expansion with finite width (Expanding PBM Images) in C

I am trying to expand a PBM image of say, 5x5 to 10x10 but I have hit somewhat of a road block. I have read the header, and height / width with the following int fSize = size(inFile); char *inputBuffer = malloc(fSize); int pbmHeight,…
TyrantUT
  • 29
  • 1
  • 5
0
votes
1 answer

C++ Can't open pbm files with Opencv

I'm trying to load a .pbm image with opencv. I'm using the imread function; the documentation says that it should open pbm files but I can't make it work. It does work with other format like png/jpeg/... #define CV_LOAD_IMAGE_ANYDEPTH 2 #define…
pedro
  • 417
  • 2
  • 7
  • 25
0
votes
0 answers

Imread for .pbm file

I am trying to read an image, but it gives me errors as such. I have tried to read other formats, which work fine. I could not find much online, so I am posting the question here. Any ideas would be helpful! >> A =…
student001
  • 533
  • 1
  • 7
  • 20
0
votes
1 answer

.pbm file image render - [vhold] scanline-wiggles?

I'm trying to hack-up a program to read a pbm, pgm, or ppm file and render the image to the postscript output device using the image operator. Just testing the P4 input (binary portable (1-bit) bitmap) path, but my output is all screwy. %! % cf.…
luser droog
  • 18,988
  • 3
  • 53
  • 105
-2
votes
1 answer

JPG to PBM image conversion

I'm trying to convert a ".jpg" file to ".pbm" in java, but I've not been lucky, I tried with the following code: javaxt.io.Image image = new javaxt.io.Image("image.jpg"); image.saveAs("imagepbm.pbm"); But it didn't work, Could someone help me…
KEVINPERCY
  • 31
  • 5
1
2