GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BWSHRINK(1) BRL-CAD BWSHRINK(1)

bwshrink - shrink a black and white bw file

bwshrink [-s squareinsize] [-w in_width] [-n in_height] [-f shrink_factor] [-u] [infile.bw] > outfile.bw

bwshrink will take a black and white bw(5) format file of given dimensions and produce a smaller scaled version. The -w and -n flags specify the input file width and number of scan lines in pixels. They can both be set to the same value via -s. Defaults of 512 are assumed for unspecified dimensions. The integer scaling factor is set with the -f flag. By default, the factor is 2.

The program reads the entire image into memory, and then scales the image down to 1/factor the original size in both dimensions.

By default, bwshrink uses boxcar averaging to produce the output pixels from the input. The -u option causes bwshrink to use image undersampling instead.

brlcad(1), bwcrop(1), bwrect(1), bwscale(1), bw(5)

If the dimensions of the input image are not evenly divisible by the shrink factor, incorrect and bizarre output is generated.

BRL-CAD Team

This software is Copyright (c) 1991-2019 by the United States Government as represented by U.S. Army Research Laboratory.

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
06/07/2022 BRL-CAD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.