Revision: 57288
          http://sourceforge.net/p/brlcad/code/57288
Author:   mohitdaga
Date:     2013-08-29 22:50:00 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
Remove in_width and in_height options. This is possible after latest changes in 
icv_read function.

Modified Paths:
--------------
    brlcad/trunk/src/util/bw-pix.c

Modified: brlcad/trunk/src/util/bw-pix.c
===================================================================
--- brlcad/trunk/src/util/bw-pix.c      2013-08-29 22:42:18 UTC (rev 57287)
+++ brlcad/trunk/src/util/bw-pix.c      2013-08-29 22:50:00 UTC (rev 57288)
@@ -31,10 +31,8 @@
 #include "bu.h"
 
 char usage[] = "\
-Usage: bw-pix [-h] [-s squaresize] [-w width] [-n height] \n\
-                [-o out_file.pix] [file.pix] > [out_file.pix]\n";
+Usage: bw-pix [-h] [out_file.pix] [file.pix] > [out_file.pix]\n";
 
-int inx=512, iny=512;
 char *out_file = NULL;
 char *in_file = NULL;
 
@@ -43,17 +41,8 @@
 {
     int c;
 
-    while ((c = bu_getopt(argc, argv, "s:w:n:o:h?")) != -1) {
+    while ((c = bu_getopt(argc, argv, "o:h?")) != -1) {
        switch (c) {
-            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;
@@ -94,7 +83,7 @@
         return 1;
     }
 
-    img = icv_read(in_file, ICV_IMAGE_BW, inx, iny);
+    img = icv_read(in_file, ICV_IMAGE_BW, 0, 0);
     if (img == NULL)
         return 1;
     icv_gray2rgb(img);

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

Reply via email to