We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Artificial Intelligence
  3. Digital Image Analysis
  4. Image Segmentation #1

Image Segmentation #1

Problem
Submissions
Leaderboard
Discussions

Consider the following binary image where is the background, and represents a pixel on an object.

000110001010
111011110001
111010010010
100000000100 

If we segment this image on a model based on simple 4 pixel connectivity, how many 4-connected objects do you obtain? Enter the appropriate integer in the text box below.
Alternatively, you may submit a program which computes and displays the required integer.

Author

PRASHANTB1984

Difficulty

Easy

Max Score

10

Submitted By

1766

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy