I have processed an image to the point where I have certain labelled regions. Shown here with each labelled region in different shade.
I would like to show the outline of each region separately. Currently I am using bwmorph(labeledImage,'remove') but this treats any regions contacting each other and keeps the outlines of the conjunction of the multiple regions.
I am looking for a function that will keep all the outline / edge pixels for each region, something that would result in an image like the following (green edges added to show what is missing from the method I am already using).
You can differentiate all regions, so why dont you treat them separatly?
See this bwboundaries.
Related
I'm looking to create a packed bubble graph like the below (size of the bubble corresponds to population, and the color of the bubble corresponds to number of widgets sales). The graph is exactly the way I need it, except that I would like to arrange the countries so that they are grouped by continent. Is there a way to do this in Tableau?
I've tried to recreate a similar scenario even though it's not clear if the bubble color should (or not) be related to a specific field.
That being said, using the superstore dataset, I've "grouped" customers by region (color) so they are some how aligned through inner circles.
In order to do so, I just sorted the region pillow in the detail section.
See below.
I'm new to AWS and CloudWatch.
Here is a screenshot of a CloudWatch dashboard showing two parameters related to a Dynamo table.
As you can see in the pop-up the value of the sample for the orange timeseries is 2,252 while the value of the sample for the red timeseries is 7,000, yet the red chart is drawn under the orange chart. If you check the scale on the left, it seems the red series is the one that get drawn correctly, while the line of the orange one is somehow "inflated".
Can you please help me understand what is the reason behind this?
It looks like your mouse hover point data and the popup data are out of sync. Just a UI glitch.
The popup is showing 09:57 and probably on the chart at 09:57 those are the correct values.
The hover point you chose is a particular peak and is at what time? The last digit is cut off from the display but it's definitely not a 7! Looks like "09:50" maybe?
Minor UI glitch is my diagnosis.
Eventually I come up with this different set up, where one of the series has values mapped on the left Y-axis, while the other series has values mapped on the right Y-axis.
The main drawback is that the two series are not directly comparable, but at least the difference in value is more evident.
I have several series of segmented images and I need to calculate the properties (area, perimeter, radius of the largest circle fitting in area) of the black areas (pores). I could not find the value with the software imagej as it seems that it has some problems in distinguishing the holes (569 area was found) and I tried to find the values by regionprops in matlab. however, it seems that it has the same problem (570 area was found). So, can anybody please help me find the solution to this question?
here is the areas found by imagej.
The black regions bleed into one another and ImageJ cannot distinguish them. If you use Process > Binary > Watershed, this will segregate the regions into (most likely) separate objects. Be aware that you may need to invert the image before doing this. Then you can use Analyze > Analyze Particles... to find the objects. The measurements that ImageJ produces can be controlled using Set Measurements and in the dialog for Analyze Particles. It will do area and perimeter for each object, but not (AFAIK) the radius of the largest circle.
How do I confine this code (http://www.mathworks.com/help/vision/examples/motion-based-multiple-object-tracking.html) to happen only inside the ROI.
Similar to this one wherein a visible rectangle is specified and any vehicles that enter it are the only ones that are processed:
(Source: https://www.youtube.com/watch?v=IPmG30byCyc)
https://uk.mathworks.com/help/images/ref/roipoly.html
As stated here, define your region, create a binary mask and mask your original image with it, as to only leave a region of interest.
So i'm awful at Matlab and I mainly learn through examples and literally spelt out explanations.
So baring that in mind - Right now i'm trying to find how likely it is that one image i'm given is in anther via a histogram.
What i want to do is create 3 histograms for red, blue & green for each image and then add those into one image - So basically i'll have an image with a literal green histogram showing the green, a red one showing the red and a blue one showing the blue.
I know that to show a colour chanel in matlab i have to do imhist(image(:,:,1/2/3)
however that still gives me a histogram in blue.
I've looked up some things that are meant to help with this issue but it's normally aimed toward someone who knows what they're doing.... not helpful.
I've heard peope saying something like get(get(gca,'child')) which just seems giberish to me.
SO - for what i'm trying to do, image detection via histrograms, is this an appropriate method? And if so HOW do i create my 1 histogram that shows all 3 histograms in their respective colour
Cheers
You could use this version of imhist:
[counts,x] = imhist(...)
And then draw your histograms yourself, via bar, stem or similar.
These functions are then fully customizable and you can plug in your favourite color, linestyle, etc.