Timeline for How to get center points of an images with different resolution
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 4, 2020 at 7:22 | comment | added | C. E.♦ |
I would use cm[[All, 2]] where cm is ComponentMeasurements[...] .
|
|
Apr 4, 2020 at 6:51 | comment | added | CA Trevillian |
@RacaioCmoto it is always better to include the version of your Mathematica/WL, especially when it is not the most updated one. As to fix your problem, one can make an intuitive jump that since Values pulls out the values of each Rule or Association and lists them, and each key is the indexed position in the list of values (more or less), one might consider the following: Range@Length@#/.#&@ComponentMeasures[markers, “Centroid”] . Maybe there’s a simpler way, though.
|
|
Apr 4, 2020 at 4:04 | comment | added | Racaio Cmoto |
Thanks for your answer, I get an error , I think my mathematica 9, doesn't recognize Values , what is the alternative? here is the error code: HighlightImage::mkinv: Expecting either an image or graphics with dimensions {162,449} or a list of positions to specify markers instead of {RGBColor[1,0,0],Values[{1->{64.,448.167},2->{99.,448.},3->{80.6111,440.722},4->{111.,437.},5->{60.5,431.583},<<41>>,47->{94.5,309.167},48->{73.9615,305.5},49->{122.75,299.5},50->{59.8,296.7},<<86>>}]}. >>
|
|
Apr 3, 2020 at 23:40 | history | answered | C. E.♦ | CC BY-SA 4.0 |