Questions tagged [image]

Tag for questions about bitmapped graphics, particularly those using the Image function.

756 questions
14
votes
3 answers

How to mark an image?

How can I place a mark, like a cross-hair (to suggest "X marks the spot") and a text label associated with it, at a particular position on an image (mine in particular is Colorized)?
Emre
  • 1,720
  • 2
  • 13
  • 21
6
votes
2 answers

Get information about a stack of images, without plotting it

A very long time ago I used Mathematica for a few months and found it very intuitive. Now for my work I use MATLAB. I was just trying some stuff out with Mathematica again and there is something I cannot quite get the hang of. I import a stack of…
Leo
  • 257
  • 1
  • 4
  • 9
6
votes
2 answers

Mathematica averaging a big list of large images

I have a list of several hundred images, and I want to average the list to get a single image. Each image is 12bit TIFF with 2048*2048 pixels, and I am using the following to do the job: result=Mean[Map[ImageData[Import[#]]&,imagelist]]; The…
hbar
  • 189
  • 3
6
votes
2 answers

How to make "Show" function display images with original size?

h = ExampleData[{"TestImage", "House"}]; Grid[{{Show[h], Show[h, Graphics[Line[{{0, 0}, ImageDimensions[h]*2}]], PlotRange -> All]}}] The second image is much smaller than the first. I want those two images to have same sizes. Attempt…
Shen Zhou
  • 63
  • 4
6
votes
1 answer

Shadows interfering with image processing

I am currently working on processing a tic tac toe board to have a robot play a human user. As the lighting changed throughout the day, the image became more difficult to process. Is there a way to avoid this and only get the pen lines?
Jenny
  • 559
  • 2
  • 9
5
votes
2 answers

How to determine coordinates of a shape in an image?

I have a pre-processed image, from which I have to get coordinates of some components. There are 7 green components (pigs actually) that I have already isolated from an angry bird screen shot. So what I want is to locate those six components on the…
user10495
  • 515
  • 1
  • 5
  • 4
5
votes
3 answers

Displaying a small histogram overlay on a large image

I needed to overlay a small histogram onto a large image, specifically in the bottom right hand corner. However, I could not do this in an intuitive and computationally cheap fashion due to inexperience. There are two images, the…
March Ho
  • 649
  • 5
  • 15
4
votes
1 answer

How to get path and file name of a pasted image?

Under "Examples" in the help docs for ImageData you can see an image of a planetary body (Mars?). The image probably comes from Mathematica's image samples somewhere in its folders. What I mean however is: How can I get this info right from the cell…
4
votes
3 answers

How to add images where each represents a different color channel?

So I have three matrices that represent say the R, G, and B channels of an image: mR = RandomInteger[{0, 255}, {2, 2}]; mG = RandomInteger[{0, 255}, {2, 2}]; mB = RandomInteger[{0, 255}, {2, 2}]; I would like to add these to get an overall image…
cartonn
  • 1,005
  • 6
  • 15
3
votes
1 answer

Vertical direction in images

Mathematica's relatively new Image structure and related functions are very useful, but it is a great disappointment that they adopted the convention that the first row is at the top of the image. This means, among many other confusing things, that…
abwatson
  • 1,919
  • 1
  • 12
  • 19
3
votes
3 answers

the different way for a drunken man go back home in determined number of steps

A drunken man walks in a two-dimensional grid.He can walk rigth(1),down(2),left(3),up(4).After determined number of steps,for example,6 steps,he has 400 ways go back home(the number of 1(2) equal to 3(4),assume the number of 2(3) larger tan…
Apple
  • 3,663
  • 16
  • 25
3
votes
1 answer

Normalize ImageDistance

I have two images: im1,im2. When I compute their distance, using ImageDistance[im1, im2] I get a value. However, I would like to normalize this value... So do you know what the maximum image distance can be? EDIT: This is so strange: I have two…
james
  • 3,043
  • 13
  • 29
3
votes
1 answer

How to improve the result of the TextRecognize?

I have some words want to recognize. For example,I have this image: Import["https://i.stack.imgur.com/FFYhS.png"] // TextRecognize But the result is wrong. Import["https://i.stack.imgur.com/FFYhS.png"] // TextRecognize[ImageResize[#, Scaled[2]]]…
partida
  • 6,816
  • 22
  • 48
2
votes
2 answers

ImageType used by ImageData

I have an image of type "Byte" (from ImageType[image]). When I perform calculations with ImageData[image] (like Total[ImageData[image]]) are these calculations still performed with the "Byte" data format or conversion into another format like…
Rene Duchamp
  • 1,419
  • 10
  • 20
2
votes
1 answer

add a scale bar to a microscopy image?

Is there any way to add scale bar to a image for example. I just need to add a bar and a text on top of it to all my images without having to rewrite Graphics[{Thick, Thick, Yellow, Line[{{100, 100}, {166, 100}}], Text[Style["10 μ",…
Rene Duchamp
  • 1,419
  • 10
  • 20
1
2 3