XPAND(9.1) XPAND(9.1)
NAME
xpand, picnegate - adjust dynamic range
SYNOPSIS
fb/xpand [ -s ] [ input ] [ lo hi [ inlo inhi ] ]
fb/picnegate [ input ]
DESCRIPTION
Xpand linearly adjusts the dynamic range of the input picture (default standard input) mapping value inlo to lo, and inhi to hi. Lo and hi
default to 0 and 255. If inlo and inhi are not specified, the lowest and highest pixel values in the input image are used. By default,
then, xpand expands the image's dynamic range by mapping its smallest pixel value to zero and its largest value to 255. Option -s causes
all channels of the input image to be considered together when computing default values for inlo and inhi, thus preserving the hue of rgb
pictures. Otherwise, each channel is treated separately. Option -s has no effect if inlo and inhi are specified on the command line.
There is no requirement that lo be smaller than hi, or that inlo be smaller than inhi, nor that any of those values be in the range 0 to
255. Output values not in the range 0 to 255 are clamped. For example,
xpand 0 255 255 0
inverts the pixel values of its input. For convenience, picnegate is a script that executes this command.
SOURCE
/sys/src/fb/xpand.c
SEE ALSO
picfile(9.6)
XPAND(9.1)
Check Out this Related Man Page
pnmtov(1Vi)pnmtov(1Vi)NAME
pnmtov - convert portable anymap (PNM) image to Vista data file
SYNOPSIS
pnmtov [-option ...] [infile] [outfile]
DESCRIPTION
pnmtov converts an image from a portable anymap (PNM) file to a Vista data file. The following types of portable anymap may be converted:
o Portable bitmap (PBM) and its ``rawbits'' variant. A PBM image is converted to a single-band Vista image with bit pixels. Pixel values
0 and 1 are swapped since, for PBM images, 0 denotes white and 1 denotes black.
o Portable graymap (PGM) and its ``rawbits'' variant. A PGM image is converted to a single-band Vista image with ubyte pixels. The full
range of PGM pixel values is mapped to [0,255] in the returned image.
o Portable pixmap (PPM) and its ``rawbits'' variant. A PPM image is converted to an RGB color image (nbands: 3, ncolors: 3, color_interp:
rgb) with ubyte pixels. The full range of PPM pixel values is mapped to [0,255] in the returned image.
A wide range of filters are available for converting other image formats to PNM.
COMMAND LINE OPTIONS
pnmtov accepts the following options:
-help Prints a message describing options.
-in infile Specifies the input file, which is a PBM, PGM, or PPM file.
-out outfile Specifies the output file, which will be a Vista data file.
-name name Specifies the name to be given the converted image. Default: ``image''.
Input and output files can be specified on the command line or allowed to default to the standard input and output streams.
SEE ALSO VImage(3Vi), Vfile(5Vi), Vista(7Vi),
pnm(5), pbm(5), pgm(5), ppm(5)AUTHOR
Daniel Ko <ko@cs.ubc.ca>
Vista Version 1.12 3 March 1994 pnmtov(1Vi)
OS: Solaris 10_x86.
Problem:
Server needs to be patched, but root "/" is near full.
/dev/dsk/c1t1d0s0 4.2G 3.9G 284M 94% /
The /exports/home dir has a lot more space, and I'd like to either move root "/" to it, or delete it all together:
/dev/dsk/c1t1d0s7 12G ... (20 Replies)
Hi All,
I need to expand a number of Filesystems on a Sun machine running Solaris 10 OS. But first I am confused;
1. Is it possible to expand a ufs filesystem such as /dev/dsk/c1t1d0s0 (that is not managed by SVM) without lossing existing data?
2. Is it possible to have such a... (7 Replies)
I have successfully added new physical disks with the objective to expand an exisiting logical volume. How do I add the new disks to the logical volume so I can then expand the size of the lv and ultimately the file system. The disks have been added to the related Volume Group.
Thanks (7 Replies)
Hi !
I am making my first steps to make a script. Therefore i try to make a scp command more easier. Given is the following alias:
14='admin@x-abcd-def.xyz
Now i want to let the script read three var's from the console to use them in the script and then build the scp string.
echo... (7 Replies)
Hi,
I'm using a for loop reading from an input file that contains files, whose path includes a variable name.
But the for loop doesn't expand the variable and therefore can't find the file.
Here's an example:
File BACKUPFILES
/home/John/alpha
/home/Sue/beta... (8 Replies)
Dear All
For installing an application that will seat under /opt , I need to increase my root partition size (/c0t0d0s0) . Can you please let me know how can I increase this partition size?
Thank you (10 Replies)
When I do the who command it doesn't show all my info:
$w gscn
6:08PM up 4 days, 20:33, 177 users, load averages: 7.46, 3.78, 3.43
USER TTY FROM LOGIN@ IDLE WHAT
gscn R1 pool-92-199-17-1 5:46PM - w gscn
Like in the 'From' column.... (8 Replies)
I'm new to UNIX, sort of inherited this job. I have an HP lefthand SAN, where I added 100GB to one of the volumes. As I understand I also have to expand the volume on the server (solaris 10 ) as well. So, how do I do that? The file system is called: sybdump. the mount point is /export/xxx/sybdump.... (19 Replies)
Hello I hope everyone is having a good day!
Situation:
2540 with 3.6TB of usable space
volume A is 2.6TB
volume B was 1TB
Volume A is mounted via a single lun on a solaris server and is running out of space.
Volume B was used on another server but is no longer, I deleted the volume in... (7 Replies)
Hello to everyone,
I have this complex problem and I don't how to do it. I'm not sure if awk could be a good choice to do it or could be easiest in bash or perl.
A kind of introduction would be:
- I have a digit, lets say 3.
- I can expand/spread out the digit 3 to cover all possible... (7 Replies)
echo $HOME return : /home/user1echo ~ return : /home/user1My_path=~/bin/"some dir1/some dir2"
kate "$My_path/some_file"Kate open a file "~/~/bin/some dir1/some dir2/some_file" which does not exists.
I was expecting kate to open : "~/bin/some dir1/some dir2/some_file"
Any help is welcome.
... (8 Replies)
Hi I have a text file that I need use as a osascript to format some Excel files. My commands are working between the osascript and Excel but what I would like to do is format the text file with an array.
Is there a way to expand the array variables into another text file while still retaining... (9 Replies)
Hi Guys,
I wrote a collection of bash functions years ago and now need to use them again but
I'm getting some error messages when eval tries to expand the variables names.
I recollect that I used the shopt command to set one of the options but I can't quite
remember the command that I... (8 Replies)