Search Result

Collapse
248 results in 0.0028 seconds.
Keywords
Members
Tags
  •  

  • IndexError: narray: index out of range (While working with Ocropus)

    I am working with ocropus for the purpose to binarize and segments the unsegmented images. I use command to binarize the image files by ocropus as

    Code:
    ocropus-binarize -o book /home/images/*.tif
    By using the above mentioned command it worked fine for few images but after sometime it prompts an error message as shown below,

    Code:
    File "/usr/local/bin/ocropus-binarize", line 151, in <module>
    ...
    See more | Go to post

  • Distutils on windows with mingw, messed up includes?

    Hi,

    I am pretty lost here: My goal is to get an existing c++ library wrapped using distutils and swig. My C++ knowlege is very limited (so is my Python).

    So I started with trying to wrap a single class from the library (I already have a simple example .cpp file packed into a .pyd correctly and it works fine with ipython) but when trying to do the same with this one:

    Code:
    #include "jcnError.h"
    ...
    See more | Go to post

  • Memory management for Large dataset in python

    Hi Everyone,

    I am working on Latin dataset and I am supposed to read all the data from ~30,000 files. What i did was, I opened and read the file and written file contents in separate one file (say Master.nc) and then close the individual files. But Master.nc will not close unless to read the last file.

    I need Master.nc file at the end having the content information of all ~30,000 files.

    My program is...
    See more | Go to post

  • Two Hard-coded Arrays WITH DIFFERENT SIZES into One 2-Dimensional Vector

    I am using 2 ARRAYS OF DIFFERENT SIZES in One 2-Dimensional Vector, and my output is not correct. The arrays are size 4 and size 13.
    I want COLUMN 0 to have: 55, 66, 77, 88.
    I want COLUMNs 1-12 to have 1,2,3,4,5,6,7,8 ,9,10,10,10,11 in EACH ROW. It would seem that the 2nd loop for the size 13 array would need to loop 4 times in order to fill 4 rows, however, I'm not sure how to do that. Here is what I have so far in code and output:...
    See more | Go to post

  • will someone help me fix the errors i am trying to make a ascii card deck

    Code:
    #include <stdio.h>
    #define ERROR 00404
    
    #include<iostream>
    using namespace std;
    int argc;
    char *argv[];
    int main(argc,argv)
    {
    	FILE *ascii_fd, *card_fd;
    	int arg = 1;
    	int format = 80;
    	int color = 0;
    	int corner = 0;
    	int cut = 2;
    	int interp = 0;
    	int punch = 4;
    	int table = 4;
    	int form = 1;
    	int logo
    ...
    See more | Go to post

  • codechick
    started a topic Two Hard-coded Arrays into One 2-Dimensional Vector
    in C

    Two Hard-coded Arrays into One 2-Dimensional Vector

    Two Hard-coded Arrays into One 2-Dimensional Vector
    Hello, I have been working on this issue for a long time, and I need your expertise.
    I have 2 arrays, each of them are hard-coded with integer values.
    I also have one 2-Dimensional vector and I want to put 1 array into the first column of the vector and the other array into the 2nd column of the vector. The reason is that I want to do math on the 2nd column of the vector only....
    See more | Go to post

  • w3nDiGo
    started a topic Expected primary-expression before "else"
    in C

    Expected primary-expression before "else"

    Code:
    #include <iostream>
    #include <string>
    #include <stdlib.h>
    #include <stdio.h>
    #include <windows.h>
    
    void goTo (int x, int y){
             HANDLE hConsole= GetStdHandle(STD_OUTPUT_HANDLE);
             COORD pos;
             pos. X=x; 
             pos. Y=y;
        
        SetConsoleCursorPosition(hConsole, pos);
    }
    using namespace std;
    ...
    See more | Go to post
    Last edited by Banfa; Mar 19 '12, 01:08 PM.

  • Youmair
    started a topic Pgm Image processing in c++.
    in C

    Pgm Image processing in c++.

    Hello,
    In the following code ,i am able to shrink an image using 2d pointer,but when writing the image to a file ,the file is not fully shrink(the pixels are cropped).

    Could anyone please help me to sort out the problem in my code.



    Code:
    #include<iostream>
    #include<fstream>
    #include<string>
    #include<conio.h>
    using namespace std;
    
    void
    ...
    See more | Go to post
    Last edited by weaknessforcats; Mar 11 '12, 04:22 PM. Reason: added code tags

  • How can I write allpowers of 2 from 2^0 up to 2^12 in C++ ?

    How can I write all powers of 2 from 2^0 up to 2^12 using while loop statement in C++? on the screen it must be seem like 2^0 2^1 2^2 2^3 2^4.....2^12.
    Can you help me please about this code.Thanks a lot.
    See more | Go to post

  • new hp
    started a topic programming old NOKIA mobile phone
    in C

    programming old NOKIA mobile phone

    Does anyone know how to program old NOKIA mobile phone, such as NOKIA 5110, nokia 7110, and nokia 8110, using C or C++.
    See more | Go to post

  • blawson2441
    started a topic Handling damage in a game
    in C

    Handling damage in a game

    I have to make a game, where damage is inflicted and subtracted from health after every turn. there is you and the cpu. choices 1 and 2 have limited uses. I cannot figure out how to get the damage to store through out the entire program. here is what i have:

    Code:
    #include <iostream>
    #include <cstdlib>
    using namespace std;
    
    int main()
    {
    	int damage = rand();
    	int health = 100;
    ...
    See more | Go to post
    Last edited by Banfa; Feb 14 '12, 09:57 AM. Reason: Added [code]...[/code] tags round the code, please use them in future

  • jesper3
    started a topic Converting from HP Basic 5.0 into C++
    in C

    Converting from HP Basic 5.0 into C++

    I'm writing code for GUI to control an Agilent analyzer. Now this analyzer is quite old so all of the code examples in the programming manual are all in HP Basic 5.0. I'm fairly new to C++ and am still trying to get my head around it all.
    Below is the code I'm trying to decipher. I have a fairly good idea of whats going on I'm just not sure how it would translate in C++. The program is dumping an active trace in ASCII then loading that trace....
    See more | Go to post

  • 1>c:\documents and settings\wigundlach\my documents\visual studio 2010\Projects\count

    how do i fix this
    here is all my code from my header file and cpp file
    #include "Counter.h"
    #include<iostre am>
    using namespace std;

    Counter::Counte r(int c)
    {
    Add = 1;
    Total += Add+Add;
    cout << "your number is "<< Total << " enjoy." <<endl;


    }


    Counter::~Count er(void)...
    See more | Go to post

  • : fatal error C1083: Cannot open include file: 'isotream': No such file or directory

    how do i fix this error i have no precompiled headers and everything i have tried has not worked
    here is all my code

    #include "Cardgame.h "
    #include<isotre am>
    using namespace std;

    Cardgame::Cardg ame(int p)
    {
    players = p;
    totalparticipan ts += p;
    cout << " players have started a new game. there are now" << totalparticipan ts >>...
    See more | Go to post

  • Create Reports in Excel WorkBook using MFC of Microsoft Visual C++ 6.0

    Hi I'm trying to create a reports in excel workbook using
    the MFC Visual C++ 6.0 .

    Is that possible?
    if yes, How?

    Thanks in advance
    See more | Go to post
Working...