Thread: C++ Image Segmentation

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    2

    C++ Image Segmentation

    I am trying to find code to use for an image segementation program. I have found some code but am having trouble trying to get it running. The source code is too big to post, but it is all available to download at Image Segmentation. The problem i am having is an error that is coming up from the 'segment-image.h' file:
    [Error] ... \segment-image.h:33: implicit declaration of function 'int random(...)'
    Any help on getting this running would be much appreciated.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    random is a POSIX standard command, not a standard C command. If you're on (say) Microsoft Windows, then it isn't there.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    2
    Ok thanks, is there a windows alternative to the random function that i can use instead then?

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You could use the standard C rand() function.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  3. Segmentation Fault
    By blaksheep423 in forum C Programming
    Replies: 11
    Last Post: 12-07-2006, 05:28 AM
  4. Locating A Segmentation Fault
    By Stack Overflow in forum C Programming
    Replies: 12
    Last Post: 12-14-2004, 01:33 PM
  5. Replies: 4
    Last Post: 03-02-2003, 09:12 AM

Tags for this Thread