• 基于遗传算法的二进制图像重建(Matlab代码实现)


    目录

    💥1 概述

    📚2 运行结果

    🎉3 参考文献


    💥1 概述

         图像分辨率是评价图像成像系统的---项重要技术指标.图像分辨率又分为图像的空间分辨率、灰度分辨率和频谱分辨率等.在实际应用中,受到各种因素的限制,通过现有条件要达到所需求的分辨率往往是个难题.在我国,即便是计划发射的实时传输型侦察卫星,图像的地面分辨率与之相比,不仅远远低于美俄的发展水平,同时也达不到法国、日本以及以色列等国的技术水平.可见,如何利用采用低分辨率技术的像机来获取高分辨率图像已成为目前发展我国航天、军事等---项必不可少的关键技术.早在20世纪60年代就有人提出了超分辨率的概念,最初的方法包括频谐外推法、能量连续降减法、长椭球函数法、线性均方外推法以及叠加正弦模板法等.直到今天,它仍然是图像处理领域有待进-一步研究的热点课题之一.

    📚2 运行结果

    部分代码:

    clear
    clc
    close all

    fileName = 'IMG1.jpg'
    IMG_REF_BINARY = PreparePhoto(fileName);

    %% controling paramters of the GA algortihm
    Problem.obj = @FitnessFunction;
    Problem.nVar =  size(IMG_REF_BINARY,1) *  size(IMG_REF_BINARY,2);

    M = 30; % number of chromosomes (cadinate solutions)
    N = Problem.nVar;  % number of genes (variables)
    MaxGen = 1000;
    Pc = 0.95
    Pm = 0.001;
    Er = 0.2;

    visualization = 1; % set to 0 if you do not want the convergence curve 

    figure
    subplot(1,2,1)
    imshow(IMG_REF_BINARY)
    title('Original image')

    [BestChrom]  = GeneticAlgorithm (M , N, MaxGen , Pc, Pm , Er , Problem.obj , visualization )

    disp('The best chromosome found: ')
    BestChrom.Gene
    disp('The best fitness value: ')
    BestChrom.Fitness

    function [ newPopulation2 ] = elitism(population , newPopulation, Er)

    M = length(population.Chromosomes); % number of individuals 
    Elite_no = round(M * Er);

    [max_val , indx] = sort([ population.Chromosomes(:).fitness ] , 'descend');
        
    % The elites from the previous population
    for k = 1 : Elite_no
        newPopulation2.Chromosomes(k).Gene  = population.Chromosomes(indx(k)).Gene;
        newPopulation2.Chromosomes(k).fitness  = population.Chromosomes(indx(k)).fitness;
    end

    % The rest from the new population
    for k = Elite_no + 1 :  M
        newPopulation2.Chromosomes(k).Gene  = newPopulation.Chromosomes(k).Gene;
        newPopulation2.Chromosomes(k).fitness  = newPopulation.Chromosomes(k).fitness;
    end

    end

    🎉3 参考文献

    [1]Seyedali Mirjalili (2022). Binary Image Reconstruction Using The Genetic Algorithm.

    [2]张月英.一种基于并行遗传算法的超分辨率图像重建方法研究[J].山东师范大学学报:自然科学版,2010(2):151-154

  • 相关阅读:
    【期权系列】基于偏度指数的择时分析
    关于分子力场中键能项和角能项的思考
    2023-08-23 AndroidR 自主研究出来的三手指下滑截屏功能
    Kaldi的简单介绍和基本使用说明
    Kubernetes HPA:基于 kafka_consumergroup_lag 指标实现 Consumer Pod 水平弹性伸缩
    浅谈Oracle数据库调优(1)
    图解算法,原理逐步揭开「GitHub 热点速览」
    Selenium安装以及案例演示【Java爬虫】
    spring boot 整合 swagger自动生成接口文档,搬砖都快乐了~
    STL Array、ForwardList源码剖析
  • 原文地址:https://blog.csdn.net/m0_73907476/article/details/127454922