Pointer in an image displayed by mathematica

  • Context: Mathematica 
  • Thread starter Thread starter Haitham
  • Start date Start date
  • Tags Tags
    Image Mathematica
Click For Summary
SUMMARY

The discussion focuses on obtaining pixel coordinates from an image displayed in Mathematica. The user employs the command ims = Table[showSlice[data, i, AspectRatio -> Automatic, ImageSize -> 100, DisplayFunction -> Identity], {i, 1, 5, 1}]; to display images and seeks assistance in retrieving the coordinates of a selected pixel. The goal is to enhance clarity in the question regarding the functionality of Mathematica for this specific task. The discussion emphasizes the need for precise methods to interact with images in Mathematica.

PREREQUISITES
  • Familiarity with Mathematica's image processing functions
  • Understanding of pixel coordinate systems in digital images
  • Basic knowledge of the GraphicsArray function in Mathematica
  • Experience with the Show function for displaying graphics in Mathematica
NEXT STEPS
  • Research how to use MousePosition in Mathematica to capture pixel coordinates
  • Explore the ImageData function in Mathematica for pixel manipulation
  • Learn about interactive graphics in Mathematica using Manipulate
  • Investigate the use of EventHandler to respond to mouse clicks on images
USEFUL FOR

This discussion is beneficial for Mathematica users, image processing enthusiasts, and developers looking to enhance their skills in interactive image analysis and coordinate retrieval within Mathematica.

Haitham
Messages
15
Reaction score
0
I would like to use the pointer in an image displayed by mathematica and have the software tell me the corrdinates of that pixel in the image.

I am diaplying the image using the following command:

ims = Table[showSlice[data, i, AspectRatio -> Automatic,
ImageSize -> 100, DisplayFunction -> Identity], {i, 1, 5, 1}];

Show[GraphicsArray[{ims}], ImageSize -> 600

Any help will be greatly appreciated!
 
Physics news on Phys.org
I don't think my question made complete sense. It certainley needed better clarity. What I am trying to achieve is to pick some region or pixel in a mathematica displayed image and have mathematica tell the coordinates of that image.

Thanks!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
11K