Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable resampling/super resolution in Realsense Viewer #10320

Closed
wl2776 opened this issue Mar 17, 2022 · 9 comments
Closed

Option to disable resampling/super resolution in Realsense Viewer #10320

wl2776 opened this issue Mar 17, 2022 · 9 comments

Comments

@wl2776
Copy link

wl2776 commented Mar 17, 2022

Required Info
Camera Model D435
Firmware Version 05.13.00.50
Operating System & Version Win 10)
Platform PC
SDK Version 2.50.0

Issue Description

I am trying to estimate camera depth of field.
To do this, I am targeting the camera at a bar code and analyze how it shows the lines.

This is the screenshot of the Realsense Viewer window. I've used mouse wheel to zoom.
image

And this is the screenshot of the IrfanView window, showing color frame, captured with the Realsense Viewer.
I've zoomed into approximately the same region as in the Realsense Viewer.

image

IrfanView allows to turn off all resampling, and I can clearly see borders of pixels.

I cannot see pixel borders in the window of the Realsense viewer. This suggests that it applies some resampling/super-resolution algorithms.

I was unable to find any option to turn them off.

@wl2776 wl2776 changed the title Disable resampling/super resolution in Realsense Viewer Option to disable resampling/super resolution in Realsense Viewer Mar 17, 2022
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 17, 2022

Hi @wl2776 The new ** RealSense D405** close-range camera model released last week is best suited to very close range observation.

https://store.intelrealsense.com/buy-intel-realsense-depth-camera-d405.html

If you need to use the D435 model though then I would recommend moving the camera further away from the barcode and then maximizing the Viewer's RGB option Sharpness to '100' to enhance the quality of the RGB image.

image

In #7187 (comment) I tested RGB 'Sharpness' increasing with a D415 camera on the barcode of a drinks multipack.

image

@wl2776
Copy link
Author

wl2776 commented Mar 17, 2022

  1. Setting sharpness to 100 doesn't show borders of pixels, they are still blurred
  2. I want to turn off any quality enhancement instead of tweaking it.

@MartyG-RealSense
Copy link
Collaborator

It is possible to capture raw RGB RAW16 frames from the camera hardware using OpenCV color conversion, as demonstrated with Python scripting at #7275

The RAW16 RGB format cannot be directly streamed in the RealSense Viewer though. The Viewer will also apply the default values of a particular camera model's RGB settings to the image.

You could try disabling the RGB Decimation Filter in the Post-Processing sub-section of the RGB options to see whether that improves your results if it is not already disabled (indicated by a red colored icon beside it).

image

Once you position a D435 closer than 0.1 m / 10 cm to an object then below about 7 cm blurring will set into the image, as described by a RealSense team member at #7631 (comment)

@wl2776
Copy link
Author

wl2776 commented Mar 17, 2022

The post-processing is already disabled.
For now it seems impossible to ask the Realsense Viewer to get off all its enhancement attempts.

Here is the result I've got from the simple python script
image

It seems to me that my issue is not completely understood.
Please, take a closer look at the image.
It is possible to view sharp vertical and horizontal borders between pixels, if the image is displayed not in the Realsense Viewer.

You cannot determine such borders in the Realsense viewer, because it applies some image enhancement algorithm

image

@MartyG-RealSense
Copy link
Collaborator

The RealSense Viewer tool is not designed for the depth-of-field analysis purpose that you have in mind. It provides easy access to the camera's capabilities through a graphical interface without having to create program scripting.

Because the optics of RealSense camera sensors are fixed, once the camera is below a certain distance from the observed surface then the image will start to blur. So you will likely not be able to achieve your goal with the Viewer tool.

@wl2776
Copy link
Author

wl2776 commented Mar 17, 2022

I see. But this could be a good feature that is rather easy to implement.

@MartyG-RealSense
Copy link
Collaborator

The RealSense Viewer is an open-source tool and so RealSense users are welcome to create their own custom versions of the tool that add features for their particular use.

https://github.com/IntelRealSense/librealsense/tree/master/tools/realsense-viewer

@MartyG-RealSense
Copy link
Collaborator

Hi @wl2776 Do you require further assistance with this case, please? Thanks!

@wl2776 wl2776 closed this as completed Mar 23, 2022
@MartyG-RealSense
Copy link
Collaborator

Thanks very much @wl2776 for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants