Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenCV: How can I properly segment an Image with Thresholding / use a Binary Image to segment the original Image?
    primarykey
    data
    text
    <p>I'm currently developing a project with Mammography and I'm trying to comprehend how I can segment an image into two sections: a searchable area (ROI) and a non-searchable area. The focus of this question is directed at only the underlying algorithm of the actual image analysis / processing. Most of the results from Google and Stack Overflow have yielded helpful pieces of information, but none of them explain the steps of image analysis / processing and why these steps are important and what exactly they're each doing.</p> <p>I've written a small code segment that takes an image, re-sizes the image, and 'binarizes' the image. (Below.) Is there any way that I can trace a line (Contour?) on my binary image, move this line to my original image, and use it as a guideline in having my algorithm determine searchable areas (ROI) from non-searchable areas? Is there a simpler way of doing this?</p> <pre><code>// ** Main ** // int main( int argc, char** argv ) { /// Load an image src = cvLoadImage(argv[1], CV_LOAD_IMAGE_GRAYSCALE); // Create Dummy Image Mat destination; destination = cvCreateMat(3328/5, 4084/5, CV_32FC1); resize(src, destination,cvSize(3328/5,4084/5),0,0); src = destination; /// Create a matrix of the same type and size as src (for dst) dst.create( src.size(), src.type() ); /// Create a window namedWindow( window_name, CV_WINDOW_AUTOSIZE ); // Binarize the Image threshold(src, dst, 128, 255,CV_THRESH_BINARY | CV_THRESH_OTSU); // Show the Image imshow( window_name, dst ); /// Wait until user exit program by pressing a key waitKey(0); return 0; } </code></pre> <p>For clarification and reiteration, I've looked into quite a few tutorials and nothing has been of help for this, specifically. I would appreciate all the help I can get!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload