Megapixels tuning
#1
Code:
3c3
< model=PinePhone Pro
---
> model=PinePhone
18c18
< blacklevel=16
---
> blacklevel=3
43,46d42
< #colormatrix=1.384,-0.3203,-0.0124,-0.2728,1.049,0.1556,-0.0506,0.2577,0.8050
< #forwardmatrix=0.7331,0.1294,0.1018,0.3039,0.6698,0.0263,0.0002,0.0556,0.7693
< blacklevel=3
< whitelevel=255
50,51d45
< iso-min=100
< iso-max=64000

I have some tweaks to the configuration file for the megapixels-ppp package. It is important to increase the blacklevel settings as seen above. The old values for the two cameras  of 3 and 0 need to increase to the two new values of 16 and 3. The old values washed out the blacks. This even prevents a good color calibration for raw dng post processing.

The file to be copied and modified is pine64,pinephone-pro.ini in the directory /usr/share/megapixels/config/ . I would put a copy in the ~/.config/megapixels/config/ directory and then edit the file to insert the new blacklevel values at least.
  Reply
#2
PPP Rear Camera Profiles for RawTherapee



These profiles can be unzipped into the ~/.config/RawTherapee/profiles directory on your computer for postprocessing. They require the modifications on the PPP discussed above in order for these files to work well on your computer.



These profiles are selectible in RawTherapee at the Processing Profile prompt; select My Profiles and then select PPP_R_cloudy. You may adjust the white balance, and then save the profile again by clicking the floppy icon.



The rear camera on the PPP is not as good at colorimetry as my other cameras. But these profiles yield a quite realistic picture style. Other methods of profiling may not do as well as these have been done.



PPP rear camera profiles for RawTherapee

Code:
66,70d65
<         # -n 300        denoise
<         # -a            white balance not by camera
<         # -m 0          color artifacts
<         # -g 2.4 12.92  sRGB gamma
<         # -b 1.0        brighter
75c70
<     $DCRAW +M -H 4 -o 1 -q 3 -n 300 -a -m 0 -g 2.4 12.92 -b 1.0 -T "$@" "$MAIN_PICTURE.dng"
---
>     $DCRAW +M -H 4 -o 1 -q 3 -T "$@" "$MAIN_PICTURE.dng"

I hacked the postprocess.sh file as shown above. The main purpose is to get an automatic white balance from the  PPP cameras instead of the green tint specified by the hardware.

This file is located in the /usr/share/megapixels directory. I copied it to ~/.config/megapixels for adding the changes, and then I set megapixels to use the user version in its setup.
  Reply
#3
The package perl-image-exiftool is used if it is installed.
  Reply
#4
This is a profile for post processing images from the front camera for use in RawTherapee. The icc file can be used in other post processors

PinePhone Pro Front camera profile
  Reply
#5
Mobian has an updated kernel now, so the cameras work with megapixels.
  Reply
#6
The megapixels-ppp package has been merged back into the megapixels package. But the remaining issues of full resolution for the back camera, and of good black levels and good white balances for the viewfinder window still remain. The separate package may need to be revived.
  Reply
#7
Now with libtiff having a new version 6 in Manjaro, the megapixels app needs maintenance. But in Mobian the app works, without flash at the moment.
  Reply
#8
The updated megapixels has arrived for Mobian with the new libtiff.
  Reply
#9
The Megapixels camera package requires libtiff5; libtiff6 leaves megapixels behind. I had to find libtiff.so.5.8.0 in a flatpack directory to install it alongside libtiff.so.6 and company. Manjaro Plasma has also regressed on other libraries required for megapixels. Media formats are a problem now.
  Reply
#10
(01-30-2023, 11:40 AM)mburns Wrote: The Megapixels camera package requires libtiff5; libtiff6 leaves megapixels behind. I had to find libtiff.so.5.8.0 in a flatpack directory to install it alongside libtiff.so.6 and company. Manjaro Plasma has also regressed on other libraries required for megapixels. Media formats are a problem now.


Can you provide specific guidance on what you did in Mobian? I can't find this using flatpak, Megapixels won't open
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 3 1,244 10-28-2024, 10:46 AM
Last Post: Jite
  Megapixels on kernel > 5.19? timonoj 1 1,751 01-30-2023, 05:36 PM
Last Post: Piotr
  Megapixels (kernel 5.19) reports that a config file is missing. grump_fiddle_reinstall 2 2,387 11-30-2022, 07:44 AM
Last Post: mburns
  Megapixels - Camera App - Works w. Beta NOT Pro iwm 3 3,469 11-01-2022, 02:13 PM
Last Post: mburns

Forum Jump:


Users browsing this thread: 5 Guest(s)