Fringe Visibility Homework: Obtain Intensity Values in MATLAB

  • Thread starter Thread starter MRL
  • Start date Start date
  • Tags Tags
    Fringe
Click For Summary
SUMMARY

The discussion focuses on calculating fringe visibility from an interference pattern using MATLAB. The user has successfully converted an image to grayscale using the code snippet provided, but is seeking assistance in extracting intensity values from the image. The formula for fringe visibility, defined as (Imax-Imin)/(Imax+Imin), is highlighted as crucial for the calculation. The user requires guidance on how to implement this in MATLAB to complete their homework assignment.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of image processing techniques in MATLAB
  • Knowledge of grayscale image manipulation
  • Basic concepts of interference patterns and fringe visibility
NEXT STEPS
  • Research MATLAB functions for image intensity extraction, such as 'regionprops' or 'improfile'
  • Learn how to calculate maximum and minimum intensity values from a grayscale image
  • Explore MATLAB's image processing toolbox for advanced techniques
  • Study examples of fringe visibility calculations in optical physics
USEFUL FOR

Students in physics or engineering courses, MATLAB users interested in image processing, and anyone studying interference patterns and their analysis.

MRL
Messages
7
Reaction score
0

Homework Statement


Hi. I'm attempting to find the fringe visibility of an interference pattern from a diffraction grating, using MATLAB. I have an image of this pattern, and have used the following code so far in MATLAB:
Code:
myimage = imread('IMG_0166.JPG')
image = rgb2gray(myimage);
imshow(image)
I'm struggling to find a way in which i can go about obtaining the intensity values from this image.

Homework Equations


The fringe visibility is given by:
Visibility = (Imax-Imin)/(Imax+Imin)

The Attempt at a Solution


Above.

Any help would be appreciated,

Thanks.
 
Last edited:
Physics news on Phys.org
Is anyone able to help please?
 

Similar threads

Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
7K
Replies
8
Views
6K
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
2K