Coder Social home page Coder Social logo

ankitdhall / imagesegmentation Goto Github PK

View Code? Open in Web Editor NEW
107.0 13.0 48.0 19 KB

Image Segmentation using Texture and Color features in C++

License: MIT License

C++ 100.00%
image-segmentation classifier image-processing segmentation texture region gradient histogram color image-analysis

imagesegmentation's People

Contributors

ankitdhall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imagesegmentation's Issues

bug

int nextSegment = (int)col.at(next.yjump, next.xjump);
int nextTotalPixels = pixelsInArea[nextSegment-1];

here, when the value nextSegment is 24, the size of pixelsInArea is 14, so erros occured, vector subscript out of range.

make example?

I try to compile it but it does not result me...

g++ -lm `pkg-config --cflags opencv` -o color.o -c color.cpp
g++ -lm `pkg-config --cflags opencv` -o histogram.o -c histogram.cpp
g++ -lm `pkg-config --cflags opencv` -o texture.o -c texture.cpp
g++ -lm `pkg-config --cflags opencv` -o main.o -c main.cpp
g++ -lm -o out header.h main.o color.o histogram.o texture.o `pkg-config --libs opencv`

always loop question

in texture.cpp a function named: Mat segmentTexture() has a loop question:
do
{
seedPoint.x=rng.uniform(0, texture.cols);
seedPoint.y=rng.uniform(0, texture.rows);
seed=texture.at(seedPoint.y, seedPoint.x);
}
while(mark.at(seedPoint.y, seedPoint.x) !=0 );
if this region are all 0, it will not end. So could add a conditon:

    int cout_num = 0;
    do
    {
        seedPoint.x=rng.uniform(0, texture.cols);
        seedPoint.y=rng.uniform(0, texture.rows);
        seed=texture.at<Vec4b>(seedPoint.y, seedPoint.x);
        cout_num++;

    }
    while(mark.at<uchar>(seedPoint.y, seedPoint.x) !=0 && cout_num <= 50);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.