关于图像偏移问题

我正在使用origin nano,使用v4l工具采集了28961880的一张图片


但是为什么图片的右边16个字节像是左边偏移过来的,这个右边的16字节看起来不太对
这是我设备树中的配置方法
mode0 { /
IMX219_MODE_3280x2464_21FPS */
mclk_khz = “24000”;
num_lanes = “2”;
tegra_sinterface = “serial_a”;
phy_mode = “DPHY”;
discontinuous_clk = “no”;
dpcm_enable = “false”;
cil_settletime = “0”;
lane_polarity = “3”;

				active_w = "2896";
				active_h = "1880";
				mode_type = "bayer";
				pixel_phase = "rggb";
				csi_pixel_bit_depth = "12";
				readout_orientation = "90";
				line_length = "11200";
				inherent_gain = "1";
				mclk_multiplier = "80";
				pix_clk_hz = "200000000";	

				gain_factor = "16";
				framerate_factor = "1000000";
				exposure_factor = "1000000";
				min_gain_val = "1"; /* 1.00x */
				max_gain_val = "170"; /* 10.66x */
				step_gain_val = "1";
				default_gain = "16"; /* 1.00x */
				min_hdr_ratio = "1";
				max_hdr_ratio = "1";
				min_framerate = "2000000"; /* 2.0 fps */
				max_framerate = "46000000"; /* 21.0 fps */
				step_framerate = "1";
				default_framerate = "46000000"; /* 21.0 fps */
				min_exp_time = "13"; /* us */
				max_exp_time = "683709"; /* us */
				step_exp_time = "1";
				default_exp_time = "2495"; /* us */

				embedded_metadata_height = "0";
			};

请问有什么问题吗

看起来和这个问题很像

我能怎么解决这个问题?

Yes, for current release you can try below command.

v4l2-ctl -c preferred_stride=5824

sudo v4l2-ctl -d /dev/video0 --set-fmt-video=width=2896,height=1880,pixelformat=RG12 --set-ctrl bypass_mode=0 --set-ctrl sensor_mode=0 –stream-mmap --stream-count=5 --stream-to=test9.raw -c preferred_stride=5824

Is that what you mean?
This doesn’t seem to meet my needs, the width of an image has become 5824

Yes it’s.
Then consider to make size 64 alignment like 2880.

Thanks

What does it mean? I don’t understand

The command is correct and the size would become 5824.
If you don’t want this solution you can have sensor output the size alignment 64 like 2880x1880

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.