Class SimulatedUpCamera
- java.lang.Object
-
- org.openpnp.model.AbstractModelObject
-
- org.openpnp.spi.base.AbstractHeadMountable
-
- org.openpnp.spi.base.AbstractCamera
-
- org.openpnp.machine.reference.camera.AbstractSettlingCamera
-
- org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
-
- org.openpnp.machine.reference.camera.ReferenceCamera
-
- org.openpnp.machine.reference.camera.SimulatedUpCamera
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Runnable
,Identifiable
,Named
,Solutions.Subject
,Camera
,HeadMountable
,Locatable
,Movable
,MovableMountable
,PropertySheetHolder
,WizardConfigurable
public class SimulatedUpCamera extends ReferenceCamera
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimulatedUpCamera.BackgroundScenario
-
Nested classes/interfaces inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
ReferenceCamera.CalibrationCallback, ReferenceCamera.FocusSensingMethod
-
Nested classes/interfaces inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
AbstractSettlingCamera.SettleMethod
-
Nested classes/interfaces inherited from class org.openpnp.spi.base.AbstractCamera
AbstractCamera.ListenerEntry
-
Nested classes/interfaces inherited from interface org.openpnp.spi.Camera
Camera.Looking, Camera.SettleOption
-
Nested classes/interfaces inherited from interface org.openpnp.spi.Locatable
Locatable.LocationOption
-
Nested classes/interfaces inherited from interface org.openpnp.spi.PropertySheetHolder
PropertySheetHolder.PropertySheet
-
-
Field Summary
Fields Modifier and Type Field Description protected SimulatedUpCamera.BackgroundScenario
backgroundScenario
protected int
height
protected int
width
-
Fields inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
blueBalance, blueGamma, cropHeight, cropWidth, deinterlace, deleteAction, flipX, flipY, focusProvider, greenBalance, greenGamma, offsetX, offsetY, redBalance, redGamma, rotation, safeZ, scaleHeight, scaleWidth
-
Fields inherited from class org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
captureNotifier, fps, suspendPreviewInTasks
-
Fields inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
BOOLEAN, CAPTURE, DATA, DIFFERENCE, heatMappedImages, maxRelativeMotion, minContrastRange, minMotionTemplateMatchScore, recordedImagePlayed, recordedImages, settleContrastEnhance, settleDebounce, settleDiagnostics, settleFullColor, settleGaussianBlur, settleGradients, settleMaskCircle, settleMethod, settleThreshold, settleTimeMs, settleTimeoutMs, THRESHOLD
-
Fields inherited from class org.openpnp.spi.base.AbstractCamera
afterCaptureLightOff, antiGlareLightOff, autoVisible, beforeCaptureLightOn, cameraPrimaryZ, cameraSecondaryZ, defaultZ, head, id, listeners, looking, name, roamingRadius, shownInMultiCameraView, unitsPerPixel, unitsPerPixelSecondary, userActionLightOn, visionProvider
-
Fields inherited from class org.openpnp.model.AbstractModelObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description SimulatedUpCamera()
-
Method Summary
-
Methods inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
autoAdjustWhiteBalance, autoAdjustWhiteBalanceMapped, cancelCalibration, capture, captureRaw, captureTransformed, clearCalibrationCache, flip, getAdvancedCalibration, getBlueBalance, getBlueGamma, getCalibratedHeadOffsets, getCalibration, getCaptureTryCount, getColorBalanceGraph, getCropHeight, getCropWidth, getFocusProvider, getFocusSensingMethod, getGreenBalance, getGreenGamma, getHeadOffsets, getHeight, getLightActuator, getOffsetX, getOffsetY, getPropertySheetHolderActions, getPropertySheets, getRedBalance, getRedGamma, getRotation, getScaleHeight, getScaleWidth, getUnitsPerPixel, getWidth, hasNewFrame, home, initWhiteBalanceLut, isAllowMachineActuators, isCalibrating, isCropped, isDeinterlace, isDeinterlaced, isFlipped, isFlipX, isFlipY, isOffset, isRotated, isScaled, isUndistorted, isWhiteBalanced, resetColorMaps, resetWhiteBalance, safeInternalCapture, setAllowMachineActuators, setBlueBalance, setBlueGamma, setCropHeight, setCropWidth, setDeinterlace, setFlipX, setFlipY, setFocusSensingMethod, setGreenBalance, setGreenGamma, setHeadOffsets, setLightActuator, setOffsetX, setOffsetY, setRedBalance, setRedGamma, setRotation, setScaleHeight, setScaleWidth, setUndistorted, startCalibration, transformImage, viewHasChanged
-
Methods inherited from class org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
broadcastCapture, cameraViewHasChanged, captureCameraView, close, ensureOpen, getCaptureErrorImage, getLastTransformedImage, getPreviewFps, getThread, isBroadcasting, isOpen, isPreviewSuspended, isSuspendPreviewInTasks, notifyCapture, open, reinitialize, run, setLastTransformedImage, setPreviewFps, setSuspendPreviewInTasks, start, startContinuousCapture, stop, stopContinuousCapture
-
Methods inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
commit, computeDifference, createHeatMapDiagnosticImage, createMask, enhanceContrast, getRecordedComputeMilliseconds, getRecordedImage, getRecordedImagePlayed, getRecordedImages, getRecordedSettleMilliseconds, getSettleContrastEnhance, getSettleDebounce, getSettleGaussianBlur, getSettleGraph, getSettleMaskCircle, getSettleMethod, getSettleThreshold, getSettleTimeMs, getSettleTimeoutMs, isSettleDiagnostics, isSettleFullColor, isSettleGradients, lightSettleAndCapture, playRecordedImage, setRecordedImagePlayed, setRecordedImages, setSettleContrastEnhance, setSettleDebounce, setSettleDiagnostics, setSettleFullColor, setSettleGaussianBlur, setSettleGradients, setSettleGraph, setSettleMaskCircle, setSettleMethod, setSettleThreshold, setSettleTimeMs, setSettleTimeoutMs, settleAndCapture
-
Methods inherited from class org.openpnp.spi.base.AbstractCamera
actuateLight, actuateLightAfterCapture, actuateLightBeforeCapture, ensureCameraVisible, estimateZCoordinateOfObject, getCameraAbsoluteZ, getCameraPhysicalLocation, getCameraPrimaryZ, getCameraRelativeZ, getCameraSecondaryZ, getCameraToolCalibratedOffset, getDefaultZ, getHead, getId, getLocation, getLooking, getName, getPropertySheetHolderIcon, getRoamingRadius, getUnitsPerPixel, getUnitsPerPixelAtZ, getUnitsPerPixelPrimary, getUnitsPerPixelSecondary, getVisionProvider, isAfterCaptureLightOff, isAntiGlareLightOff, isAutoVisible, isBeforeCaptureLightOn, isEnableUnitsPerPixel3D, isShownInMultiCameraView, isUnitsPerPixelAtZCalibrated, isUserActionLightOn, setAfterCaptureLightOff, setAntiGlareLightOff, setAutoVisible, setBeforeCaptureLightOn, setCameraPrimaryZ, setCameraSecondaryZ, setDefaultZ, setEnableUnitsPerPixel3D, setHead, setId, setLooking, setName, setRoamingRadius, setShownInMultiCameraView, setUnitsPerPixel, setUnitsPerPixelPrimary, setUnitsPerPixelSecondary, setUserActionLightOn, setVisionProvider, toString
-
Methods inherited from class org.openpnp.spi.base.AbstractHeadMountable
applyConfiguration, getApproximativeLocation, getAxis, getAxisRotation, getAxisX, getAxisY, getAxisZ, getCoordinateAxisZ, getEffectiveSafeZ, getLocation, getMachine, getMappedAxes, getSafeZ, getSafeZZone, headMountableToRawZ, isInSafeZZone, isReachable, moveTo, moveTo, moveToSafeZ, moveToSafeZ, rawToHeadMountableZ, setAxis, setAxis, setAxisRotation, setAxisX, setAxisY, setAxisZ, setSafeZ, substituteUnchangedCoordinates, toAxesLocation, toHeadLocation, toHeadLocation, toHeadMountableLocation, toHeadMountableLocation, toMappedLocation, toRaw, toTransformed, waitForCompletion
-
Methods inherited from class org.openpnp.model.AbstractModelObject
addPropertyChangeListener, addPropertyChangeListener, dispose, dumpListeners, fireIndexedPropertyChange, firePropertyChange, isListener, isListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openpnp.spi.Camera
actuateLightBeforeCapture, settleAndCapture
-
Methods inherited from interface org.openpnp.spi.HeadMountable
getCameraToolCalibratedOffset, getHead, setHead, toHeadLocation, toHeadMountableLocation, waitForCompletion
-
Methods inherited from interface org.openpnp.model.Identifiable
getId
-
Methods inherited from interface org.openpnp.spi.Locatable
getApproximativeLocation, getLocation
-
Methods inherited from interface org.openpnp.spi.Movable
getEffectiveSafeZ, getSafeZ, getSafeZZone, isInSafeZZone, isReachable, moveTo, moveTo, moveToSafeZ, moveToSafeZ
-
Methods inherited from interface org.openpnp.spi.MovableMountable
getAxis, getAxisRotation, getAxisX, getAxisY, getAxisZ, getMappedAxes, toRaw, toTransformed
-
Methods inherited from interface org.openpnp.model.Solutions.Subject
getSubjectIcon, getSubjectText
-
-
-
-
Field Detail
-
width
protected int width
-
height
protected int height
-
backgroundScenario
protected SimulatedUpCamera.BackgroundScenario backgroundScenario
-
-
Method Detail
-
internalCapture
public java.awt.image.BufferedImage internalCapture()
- Specified by:
internalCapture
in classReferenceCamera
-
blurObjectIntoView
protected void blurObjectIntoView(java.awt.Graphics2D gView, java.awt.image.BufferedImage frame, Nozzle nozzle, Location l)
-
getViewWidth
public int getViewWidth()
-
setViewWidth
public void setViewWidth(int width)
-
getViewHeight
public int getViewHeight()
-
setViewHeight
public void setViewHeight(int height)
-
getSimulatedLocation
public Location getSimulatedLocation()
-
setSimulatedLocation
public void setSimulatedLocation(Location simulatedLocation)
-
getSimulatedUnitsPerPixel
public Location getSimulatedUnitsPerPixel()
-
setSimulatedUnitsPerPixel
public void setSimulatedUnitsPerPixel(Location simulatedUnitsPerPixel)
-
isSimulatedFlipped
public boolean isSimulatedFlipped()
-
setSimulatedFlipped
public void setSimulatedFlipped(boolean simulatedFlipped)
-
getFocalLength
public Length getFocalLength()
-
setFocalLength
public void setFocalLength(Length focalLength)
-
getSensorDiagonal
public Length getSensorDiagonal()
-
setSensorDiagonal
public void setSensorDiagonal(Length sensorDiagonal)
-
isSimulateFocalBlur
public boolean isSimulateFocalBlur()
-
setSimulateFocalBlur
public void setSimulateFocalBlur(boolean simulateFocalBlur)
-
getErrorOffsets
public Location getErrorOffsets()
-
setErrorOffsets
public void setErrorOffsets(Location errorOffsets)
-
getBackgroundScenario
public SimulatedUpCamera.BackgroundScenario getBackgroundScenario()
-
setBackgroundScenario
public void setBackgroundScenario(SimulatedUpCamera.BackgroundScenario backgroundScenario)
-
getConfigurationWizard
public Wizard getConfigurationWizard()
Description copied from interface:WizardConfigurable
Gets a Wizard that can be used to configure this object.- Returns:
-
getPropertySheetHolderTitle
public java.lang.String getPropertySheetHolderTitle()
-
getChildPropertySheetHolders
public PropertySheetHolder[] getChildPropertySheetHolders()
-
findIssues
public void findIssues(Solutions solutions)
Description copied from interface:Solutions.Subject
Report any detected issue and proposed solution in the list.- Specified by:
findIssues
in interfaceSolutions.Subject
- Overrides:
findIssues
in classReferenceCamera
-
-