Package | Description |
---|---|
net.grelf.astro |
This package contains Java classes for astronomical applications.
|
net.grelf.draw | |
net.grelf.grip |
This package contains the Java classes which are specific to the image
processing application GRIP.
GRIP is available as a free download from www.grelf.net - please always quote this URL in connection with GRIP. Version: 18.1.24 |
Modifier and Type | Method and Description |
---|---|
SkyPoint |
Star.measurePosition(ImFrame parentFrame,
BlobMeasList measList)
If this star has unknown position (RA/Dec), do astrometry using the known
reference stars in the given MeasList.
|
Constructor and Description |
---|
MagnitudeGraph(ImFrame parent,
java.lang.String title,
BlobMeasList meases,
MagnitudeBands bands,
java.lang.String filePath,
TimeInterval timeSpan)
Any BlobMeas objects that have a star with an id but no magnitude will
have magnitudes estimated by least squares fitting.
|
MagnitudeTable(ImFrame parent,
java.lang.String title,
BlobMeasList meases)
Any BlobMeas objects that have an id will have their data tabulated.
|
Modifier and Type | Class and Description |
---|---|
class |
DrawingFrame |
Modifier and Type | Class and Description |
---|---|
class |
BlobFrame
A type of ImFrame for displaying magnified blobs/stars.
|
class |
CometFrame
An ImFrame for use with a CometProcessor.
|
class |
MagnifiedFrame
Type of ImFrame which shows a magnified portion of an image.
|
class |
StarChartFrame
A type of ImFrame that contains a net.grelf.astro.StarChart.
|
class |
StarMeasFrame
An ImFrame for use with a StarMeasProcessor.
|
Modifier and Type | Field and Description |
---|---|
protected ImFrame |
ImFrame.parentFrame |
Modifier and Type | Method and Description |
---|---|
ImFrame |
ImFrame.duplicate()
Duplicate this ImFrame, making a new displayed frame.
|
ImFrame |
BlobMeasList.getImFrame() |
ImFrame |
ImPane.getImFrame()
Get a reference to the parent ImFrame in which this ImPane is displayed.
|
ImFrame |
ImFrame.getParentFrame() |
ImFrame |
BlobFrame.getParentImFrame() |
ImFrame[] |
ImFrame.splitChannels()
Create 3 new images, one containing each of the channels of the
original image, displaying them as new ImFrames, references to which
are returned.
|
ImFrame[] |
ImFrame.splitIntensity()
Create a monochrome image in which each pixel has the value I = sum of
the band levels of the current image plus a colour image in which the pixel
in each band has the value maxLevel * bandLevel / I.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ImFrame> |
GRIP.getImFramesList()
Get a list of all the ImFrames which are currently on display.
|
java.util.List<ImFrame> |
ImTable.getList() |
protected java.util.List<ImFrame> |
ImTable.getSelected() |
Modifier and Type | Method and Description |
---|---|
void |
Spectrum.analyse(ImFrame imframe,
PointList points)
Analyse the rectangular region defined by two points to align a spectrum
and show its profile.
|
void |
Pseudocolour.apply(ImFrame imf)
Apply the LUT to the given image.
|
static java.util.List<java.awt.Point> |
ControlPointsDialogue.askControl(int controlNo,
ImFrame imf1,
java.awt.Point controlPt1,
ImFrame imf2,
java.awt.Point controlPt2)
For any code to use the present class for the user to adjust a pair of
control points interactively.
|
static java.util.List<java.awt.Point> |
ImCurveDialogue.askCurve(ImFrame imf)
For any code to use the present class for the user to set a polygonal
curve interactively.
|
static int |
ImAddProportionDialogue.askProportion(ImFrame imf1,
ImFrame imf2)
For any class to use the present class for doing proportional image
addition.
|
static int |
ImMultiplyProportionDialogue.askProportion(ImFrame imf1,
ImFrame imf2)
For any class to use the present class for doing proportional image
multiplication.
|
static int |
ImSaturateDialogue.askSaturate(ImFrame imf)
For any class to use the present class for setting saturation.
|
static int[] |
ImColourDialogue.askSettings(ImFrame imf)
For any code to use the present class for setting colour balance.
|
static Threshold |
ImThreshDialogue.askThreshold(ImFrame imf)
For any code to use the present class for setting a threshold.
|
static Threshold |
ImThreshRGBDialogue.askThreshold(ImFrame imf)
For any code to use the present class for setting a threshold.
|
static void |
Calibrator.calibrate(ImFrame imf)
Calibrate the given ImFrame, by interacting with the user.
|
void |
PointList.calibrate(ImFrame imf)
Calibrate an ImFrame by interacting with the user.
|
static void |
Calibrator.calibrateOnStars(ImFrame imf)
Calibrate the given ImFrame by using known star positions identified
against detected blobs.
|
void |
MeasurementMenu.clearOverlay(ImFrame imframe)
Erase the drawn shape or other overlay from the GlassPane of the
given frame.
|
void |
MeasurementMenu.copyCalibrationFromOtherFrame(ImFrame imframe)
Ask user to select another calibrated frame from which calibration
will be copied to the given one.
|
static MagnifiedFrame |
MagnifiedFrame.create(int centreX,
int centreY,
ImFrame parentFrame)
There is no public constructor - use this instead.
|
static void |
MatchPair.deleteMatches(java.awt.Point pt1,
java.awt.Point pt2,
ImFrame imf)
Ask the user to confirm deletion of any match lists displayed in the
ImFrame which intersect the rectangle defined by the two points.
|
static java.util.List<Defect> |
Raw.detectDefectivePixels(ImFrame imf)
Ask the user to confirm that this is a dark field image; if so, scan for
defective pixels then ask for a CSV file for saving the list.
|
static void |
Hist3D_Pane.display(ImFrame source)
Enabling any class to display a 3D histogram of the image from the given
frame, in a new frame.
|
static void |
Prof3D_Pane.display(ImFrame source)
Enabling any class to display a 3D profile of the image from the given
frame, in a new frame.
|
BlobFrame |
Blob.display(ImFrame srcFrame,
BlobMeas meas)
Display this blob magnified in the given frame.
|
BlobFrame |
Blob_.display(ImFrame srcFrame,
BlobMeas meas)
Display this blob magnified in a new BlobFrame.
|
static void |
Prof3D_Pane.display(ImFrame source,
java.awt.Point pt1,
java.awt.Point pt2)
Enabling any class to display a 3D profile of the image from the given
frame, in a new frame.
|
void |
ImFrame.divideByFlatField(ImFrame imf2)
Divide this image by flat field in imf2, pixel by pixel
|
void |
BlobMeasList.drawBoundaries(ImFrame imframe)
Draw boundaries of all blobs in the list into the GlassPane of the given
ImFrame and redisplay the image.
|
void |
ImGraphic.drawLyapunov(ImFrame imf,
java.awt.Point offset,
double zoomFactor)
Redraw the Lyapunov data in the given frame, zoomed by the given
factor about the given point.
|
void |
ImGraphic.drawMandelbrot(ImFrame imf,
java.awt.Point offset,
double zoomFactor)
Redraw the Mandelbrot curve in the given frame, zoomed by the given
factor about the given point.
|
void |
BlobMeasList.drawRegions(ImFrame imframe)
Draw regions of all blobs in the list into the GlassPane of the given
ImFrame and redisplay the image.
|
void |
ImGraphic.drawRim(ImFrame imf,
int width,
java.awt.Color colour)
Draw a rim around the image displayed in the given ImFrame, of the given
width and colour
|
void |
Blob_.eraseToBackground(BlobMeas meas,
ImFrame parentFrame)
For removing stars during comet stacking.
|
void |
ImFrame.fft(ImFrame otherFrame,
boolean forward)
Fast Fourier Transform; creates a pair of 64-bit images, real [0] and
imaginary [1] parts, from this and another frame.
|
static int |
ImContourDialogue.interact(ImFrame imf)
For any code to use the present class for setting a contour interval.
|
static void |
Warp.interactiveWarp(ImFrame imf1,
ImFrame imf2)
Warp the image in frame imf2 into the image in frame imf1, using the
control points that have been set on each.
|
static void |
Raw.interpret(ImFrame imf)
Convert RAW image to normal by interpolating across zero pixels in
each channel.
|
boolean |
Blob.isSaturatedInRegion(ImFrame srcFrame)
Whether any pixels in the blob reach the maximum
image level in any channels.
|
boolean |
Blob_.isSaturatedInRegion(ImFrame srcFrame)
Rescan the region (rows) of this blob to determine whether it is saturated
(ie, reaching maximum level in any band).
|
void |
ImFrame.keepOnlyDifferingPixels(ImFrame imf2,
int threshold)
Keep only pixels in this image which differ by more than the threshold
amount (in at least one band) from pixels at the same position in the
other image.
|
static WarpingGrid |
WarpingGrid.make(ImFrame imframe)
Wizard for making a WarpingGrid from an image, step by step.
|
void |
Blob.measureAccurately(BlobMeas meas,
ImFrame parentFrame)
Measure meanBackground, accurateBrightnesses and snRatios fields of the
given BlobMeas using backgroundDisc and brightnessDisc in the given frame
(which is assumed to be the parent frame of the magnified blob frame).
The signal-to-noise (S/N) ratio for each channel is measured as (mean (starBrightness) - mean (backgroundBrightness)) / stdDev (backgroundBrightness) where mean (starBrightness) is the accurately measured brightness in the inner disc divided by the number of pixels in that disc. |
void |
Blob_.measureAccurately(BlobMeas meas,
ImFrame parentFrame)
Measure meanBackground, accurateBrightnesses and snRatios fields of the
given BlobMeas using backgroundDisc and brightnessDisc in the given frame
(which is assumed to be the parent frame of the magnified blob frame).
The signal-to-noise (S/N) ratio for each channel is measured as (mean (starBrightness) - mean (backgroundBrightness)) / stdDev (backgroundBrightness) where mean (starBrightness) is the accurately measured brightness in the inner disc divided by the number of pixels in that disc. |
void |
MeasurementMenu.measureArea(ImFrame imframe)
The user defines a closed curve on the given frame, which is then
measured.
|
void |
PointList.measureArea(ImFrame imf)
Measure the shape over the given image, assuming it to be a closed curve.
|
void |
MeasurementMenu.measureBetweenBlobs(ImFrame imframe)
The user defines two points which are the centres of the blobs nearest
to the mouse cursor.
|
void |
PointList.measureBlobLine(ImFrame imf)
Measure the straight line between the centres of two blobs.
|
void |
MeasurementMenu.measureCurve(ImFrame imframe)
The user defines an open curve on the given frame, which is then
measured.
|
void |
PointList.measureCurve(ImFrame imf)
Measure the shape over the given image, assuming it to be an open curve.
|
void |
MeasurementMenu.measureHovering(ImFrame imframe)
Set HOVER drawing mode on the given frame so the user can read off
measurements.
|
void |
PointList.measureLine(ImFrame imf)
Measure the shape over the given image, assuming it to be a straight
line.
|
void |
MeasurementMenu.measurePoint(ImFrame imframe)
The user defines a single point on the given frame, which is then
measured.
|
void |
PointList.measurePoint(ImFrame imf)
Measure the shape over the given image, assuming it to be a single point
(ie, just one point in the list).
|
void |
MeasurementMenu.measureRectangle(ImFrame imframe)
The user defines a rectangle on the given frame, which is then measured.
|
void |
PointList.measureRectangle(ImFrame imf,
DrawingMode mode)
Measure the shape over the given image, assuming it to be a rectangle
(there are only the two opposite corners in the list of points).
|
void |
PointList.measureRectangle(ImFrame imf,
java.awt.Point pt1,
java.awt.Point pt2,
DrawingMode mode)
Measure the rectangle defined by the two given points (as opposite
corners) over the given image.
|
void |
MeasurementMenu.measureSameShapeAsOtherFrame(ImFrame imframe)
Ask the user to select another measured frame and for its shape then to
be measured in the given frame.
|
void |
PointList.measureStarLine(ImFrame imf)
Measure the straight line between two stars in a StarChart.
|
void |
MeasurementMenu.measureStraightLine(ImFrame imframe)
The user defines a straight line on the given frame, which is then
measured.
|
void |
PointList.measureWhole(ImFrame imf)
Measure the whole rectangular area of the given image.
|
void |
MeasurementMenu.measureWholeImage(ImFrame imframe)
Measure the whole image in the given frame and display the results.
|
void |
MeasurementMenu.moveShape(ImFrame imframe)
Allow the user to drag the shape in the given frame, which is
remeasured on releasing the mouse.
|
void |
ImFrame.multiply(ImFrame imf2)
Multiply imf2 into this image, pixel by pixel
|
static int |
UnsharpMaskDialogue.perform(ImFrame imf)
For any class to use the present class for doing unsharp masking.
|
void |
DefaultMeasurementHandler.process(ImFrame imf,
PointList ps,
java.util.List<Measurement> ml)
Simply displays measurements in a message dialogue, formatting them
appropriately.
|
void |
MeasurementHandler.process(ImFrame imf,
PointList ps,
java.util.List<Measurement> ml)
Eg, for displaying measurements or putting them into a results file:
whatever has to be done with them.
|
void |
Blob.remeasureAccurately(BlobMeas meas,
ImFrame parentFrame) |
void |
Blob_.remeasureAccurately(BlobMeas meas,
ImFrame parentFrame) |
static void |
Raw.removeMargin(ImFrame imframe)
Remove the non-exposed image margin, the widths of which are set
in Config.
|
void |
MeasurementMenu.reviewLastMeasurements(ImFrame imframe)
Redisplay the last set of measurements made on the given frame.
|
static void |
StarSegmenter.segment(ImFrame imf,
int difference,
int radius,
boolean open)
Segment the image to detect pixels in stars using the given parameters.
|
void |
BlobMeasList.setImFrame(ImFrame frame)
Enable this list to be assigned to a different frame, in exceptional
circumstances (eg, in CometProcessor when segmenting on split intensity
frame).
|
static void |
Calibrator.show(ImFrame imf)
Display the calibration of the given ImFrame in a message box.
|
void |
BlobMeasList.showBrightestBlobs(ImFrame imframe)
Draw brightest blobs into the GlassPane of the given ImFrame and
redisplay the image.
|
void |
BlobMeasList.showUncircular(ImFrame imFrame) |
void |
ImFrame.stereo(ImFrame imf2)
Use this frame to display in red - green stereo the two images from this
and imf2.
|
void |
ImFrame.sub(ImFrame imf2)
Subtract imf2 from this image, pixel by pixel, the result being about
the half-way brightness level so that both negative and positive results
can be seen.
|
void |
ImFrame.subToZero(ImFrame imf2)
Subtract imf2 from this image, pixel by pixel, keeping only positive
results, base level 0.
|
static WarpingGrid |
WarpingGrid.use(ImFrame imframe)
Wizard for using a WarpingGrid from a file, step by step.
|
static void |
ExperimentMenu.zoomEffect(ImFrame imf,
java.awt.Point centre) |
Modifier and Type | Method and Description |
---|---|
static void |
ImFrame.showCameraResponseCurve(java.util.List<ImFrame> frames)
Uses the images to compute the camera response curve and display it as a
graph, as described in "On Being ‘Undigital’ With
Digital Cameras: Extending Dynamic Range By Combining Differently Exposed
Pictures" by S.
|
Constructor and Description |
---|
BlobFrame(java.lang.String title,
int width,
int height,
BlobMeas meas,
ImFrame parentFrame)
The BlobMeas parameter is non-null only if this is a frame opened as
a result of clicking on or near one detected blob; also in that case
the parent frame is the one on which the user clicked, containing all the
detected blobs.
|
BlobMeasList(ImFrame imframe)
The imframe is needed so that when blob data are deserialised from file the
image from which they were obtained can also be opened.
|
ControlPointsDialogue(int controlNo,
ImFrame imf1,
java.awt.Point controlPt1,
ImFrame imf2,
java.awt.Point controlPt2)
Create the dialogue and display it as modal.
|
ConvolutionMenu(ImFrame frame) |
ExperimentMenu(ImFrame imf) |
FastSlowDialogue(ImFrame owner) |
GeometryMenu(ImFrame frame) |
GlassPane(DrawingMode mode,
javax.swing.JMenuBar menubar,
MeasurementHandler mh,
ImFrame frame) |
HistogramBlobArea(ImFrame imframe,
BlobMeasList blobMeases) |
HistogramBlobShape(ImFrame imframe,
BlobMeasList blobMeases) |
ImAddProportionDialogue(ImFrame imf1,
ImFrame imf2)
Construct the modal dialogue and make it visible.
|
ImageMenu(ImFrame frame) |
ImColourDialogue(ImFrame imf)
Create the dialogue and display it as modal.
|
ImContourDialogue(ImFrame imf)
Create the dialogue and display it as modal.
|
ImFrame(java.lang.String title,
DrawingMode drawingMode,
java.lang.String imFilePath,
int newImageNo,
int width,
int height,
MeasurementHandler mh,
boolean withMenu,
ImPane imPane,
ImFrame theParentFrame,
Image image)
The most general constructor, that all the others invoke.
|
ImFrame(java.lang.String title,
int width,
int height,
boolean withMenu,
ImFrame parentFrame)
No file loading but can have a menu and has an associated set of blob
measurements.
|
ImMultiplyProportionDialogue(ImFrame imf1,
ImFrame imf2)
Construct the modal dialogue and make it visible.
|
ImPane(ImFrame parent,
int width,
int height,
GlassPane gp) |
ImPane(ImFrame parent,
java.lang.String imFilename,
GlassPane gp) |
ImPane(ImFrame parent,
java.lang.String imFilename,
int width,
int height,
GlassPane gp) |
ImPane(ImFrame parent,
java.lang.String imageFilePath,
int width,
int height,
GlassPane gp,
Image image)
If the file path or image are not null, width and height are irrelevant.
|
ImSaturateDialogue(ImFrame imf)
Construct the modal dialogue and make it visible.
|
ImThreshDialogue(ImFrame imf)
Create the dialogue and display it as modal.
|
ImThreshRGBDialogue(ImFrame imf)
Create the dialogue and display it as modal.
|
LevelsMenu(ImFrame frame) |
MeasurementMenu(ImFrame frame) |
MeasurementTable(ImFrame imFrame) |
OpThread(OpThread.Ops anOp,
ImFrame aFrame,
int width)
Width is only used for (de-)convolutions, so can be any value for
other ops.
|
Profile1D(ImFrame imf,
PointList ps)
Scans the image to collect the profile data.
|
SegmentationMenu(ImFrame frame) |
UnsharpMaskDialogue(ImFrame imf)
Construct the modal dialogue and make it visible.
|