Revision: 57285
http://sourceforge.net/p/brlcad/code/57285
Author: mohitdaga
Date: 2013-08-29 22:35:10 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
Remove in_width and in_height option from pix-bw
Modified Paths:
--------------
brlcad/trunk/src/util/pix-bw.c
Modified: brlcad/trunk/src/util/pix-bw.c
===================================================================
--- brlcad/trunk/src/util/pix-bw.c 2013-08-29 22:31:09 UTC (rev 57284)
+++ brlcad/trunk/src/util/pix-bw.c 2013-08-29 22:35:10 UTC (rev 57285)
@@ -52,13 +52,11 @@
double bweight = 0.0;
ICV_COLOR color;
-int inx=512, iny=512;
char *out_file = NULL;
char *in_file = NULL;
static const char usage[] = "\
-pix-bw [-h] [squaresize] [-w width] [-n height] \n\
- [ [-N] [-C] [-R red_weight] [-G green_weight] [-B blue_weight] ] \n\
+pix-bw [-h] [ [-N] [-C] [-R red_weight] [-G green_weight] [-B blue_weight] ]
\n\
[-o out_file.bw] [file.bw] > [out_file.bw] \n";
double multiplier = 0.5;
@@ -68,7 +66,7 @@
{
int c;
- while ((c = bu_getopt(argc, argv, "R:G:B:s:w:n:o:h?NC")) != -1) {
+ while ((c = bu_getopt(argc, argv, "R:G:B:o:h?NC")) != -1) {
switch (c) {
case 'N' :
rweight = 0.30;
@@ -96,15 +94,6 @@
blue++;
bweight = atof(bu_optarg);
break;
- case 's':
- inx = iny = atoi(bu_optarg);
- break;
- case 'w':
- inx = atoi(bu_optarg);
- break;
- case 'n':
- iny = atoi(bu_optarg);
- break;
case 'o':
out_file = bu_optarg;
break;
@@ -145,9 +134,8 @@
bu_log("%s", usage);
return 1;
}
+ img = icv_read(in_file, ICV_IMAGE_PIX, 0,0);
- img = icv_read(in_file, ICV_IMAGE_PIX, inx, iny);
-
if (img == NULL)
return 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits