You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
How to replicate picture?
6 views (last 30 days)
Show older comments
Hiya,
I would like to replicate the following plot:
I have an n x n binary matrix, the ones indicate where the road should be and the 0s where nothing should be. Ignore the red dot.
Thanks!
13 Comments
Walter Roberson
on 21 Sep 2018
imshow(~YourData)
to get the 1s to show up dark.
Saurabh Patel
on 21 Sep 2018
Use edge detection. It will identify the road boundaries.
Walter Roberson
on 21 Sep 2018
Is your concern that the background is showing up in white instead of in light gray ?
Image Analyst
on 21 Sep 2018
Read this link first, then tell us what "replicate" means to you. Like make copies of, like the repmat() function does? We really have no idea what you're thinking.
Walter Roberson
on 21 Sep 2018
... We still do not understand what you are asking for, so we cannot advise you if there is a way to do what you want.
Image Analyst
on 21 Sep 2018
There might be, but since we don't know what you want, we don't know what to tell you. We don't know if it's a display/visualization problem, a line detection or segmentation problem, a replication/copying/pasting problem or something else.
s z
on 21 Sep 2018
It is an ML problem. By using a recurrent ANN a game has to be solved. A game where there is a car (red dot) and you want to minimize the amount the car is not between the road (the two lines). So this picture above is just a snapshot of the game you would plot after each result to see the car moving
Image Analyst
on 21 Sep 2018
What is ML? Do you have coordinates of the road boundaries and of the red spot/car location?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)