Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 53229

Questions on the image processing capabilities implemented in Mathematica.

3 votes
1 answer
254 views

How to dilate binary image from outside-to-inside?

I have a binary image of a line, like this one: What I'd like to do is to dilate the line, but only towards the 'inside' of the line. That is, to add white pixels towards the center of the image, usi …
TumbiSapichu's user avatar
  • 1,643
1 vote

How to extract specified objects from a pdf?

Given that the formatting of the text seems consistent, it might suffice to partition the text by periods (".") and remove newlines ("\n" and "\r"). text = StringSplit[StringDelete[Import["mypdf.pdf" …
TumbiSapichu's user avatar
  • 1,643
1 vote
2 answers
117 views

How to change color of DistanceTransform image?

I want to overlay a set of points onto a distance transform of them. But, I don't really like the black default color of the distance transform. Is there a way to change this? Given the points pts: …
TumbiSapichu's user avatar
  • 1,643
3 votes
1 answer
148 views

How to generate blobs of a given circularity?

I'm trying to generate some "imaginary" geographic regions (think of it as islands, for instance), by generating random blobs/blots. Currently, I'm using Szabloc's blotc[] function. However, for my ap …
TumbiSapichu's user avatar
  • 1,643
4 votes
3 answers
252 views

How to do a "random" image partition based on seeding points?

I'm new to image analysis with Mathematica, so far it looks it has great capabilities. I'm trying to do an image partition, similar to ImagePartition[], but "random". Suppose I have the image below: m …
TumbiSapichu's user avatar
  • 1,643
2 votes

How to do a "random" image partition based on seeding points?

Okay, in case it is of any use to somebody, following the comment by @C.E. I took a look into ImageTrim[]. It was only a matter of finding out the specific format of the arguments of the function. (*L …
TumbiSapichu's user avatar
  • 1,643
0 votes
1 answer
90 views

Strange behavior of Show with picture + points

I have a square image of 1000 x 1000 pixels, and I want to generate a collection of points inside the image. Knowing that the image is a square, I thought of simply generating points in the domain {0, …
TumbiSapichu's user avatar
  • 1,643
5 votes
4 answers
397 views

How to separate n colors from image into n binary images?

I have some images in which I expect to have some red, green, blue, or yellow areas. Like this image: myImage = Now, I'd like to get 4 binary images, representing each of the 4 colors. What I'd like …
TumbiSapichu's user avatar
  • 1,643
0 votes
2 answers
105 views

How to show/merge multiple Image3D[] graphics?

Suppose I have 2 (or more) Image3D graphics: redCubes = Image3D[RandomInteger[1, {3, 3, 3}], ColorFunction -> (If[# == 1, Red, Transparent] &)] greenCubes = Image3D[RandomInteger[1, {3, 3, 3}], …
TumbiSapichu's user avatar
  • 1,643
4 votes
2 answers
167 views

How to get ComponentMeasurements[] from colorized image?

I'm using a software to segment images. Long story short, the output given is an array of integers (range 0-255), which I show here colorized: I'm supposing that the software avoids representing two …
TumbiSapichu's user avatar
  • 1,643
4 votes
1 answer
184 views

How to get to ComponentMeasurements[] from orthographic projection of a Graphics3D[] object?

Let's say I have some composite 3D graphics of various shapes. For simplicity, let's say these are just two capsules, like below: myShapes = {CapsuleShape[{{-0.002997, 0., 0.}, {0.002997, 0., 0.}}, 2. …
TumbiSapichu's user avatar
  • 1,643